This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | EntitiesFromDBGenerator doesn't work | ||
---|---|---|---|
Product: | javaee | Reporter: | Jan Stola <jstola> |
Component: | Persistence | Assignee: | Erno Mononen <emononen> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | pjiricka |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jan Stola
2007-04-17 15:01:02 UTC
Should be fixed in trunk now. The problem was indeed related to tables with foreign keys, the NPE was thrown when trying to generate an entity for a table with a foreign key reference to another table that wasn't provided to the generator. Please note that the fix is in the db/model module. Checking in TableElementImpl.java; /cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/ TableElementImpl.java,v <-- TableElementImpl.java new revision: 1.5; previous revision: 1.4 done Checking in SchemaElementImpl.java; /cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/ SchemaElementImpl.java,v <-- SchemaElementImpl.java new revision: 1.7; previous revision: 1.6 done |