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.
Build: NetBeans IDE 7.0 M2 (Build 201010151251) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP User Comments: dheffelfinger: Attempting to generate JPA entities from an existing schema. GUEST: creating entities from an existing database dheffelfinger: Attempting to generate JPA Entities from an existing schema. dheffelfinger: Trying to generate JPA entities from an existing schema. msandoz: creating new peresistent reverse engineered from db/2 database dheffelfinger: attempting to generate a JPA entity from an existing schema. dheffelfinger: Attempting to generate JPA entities from an existing database schema dheffelfinger: Attempting to generate JPA Entities from an existing schema. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.getTablesReferencesOtherTablesWithPrimaryKeyMatch(DbSchemaEjbGenerator.java:149) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.<init>(DbSchemaEjbGenerator.java:112) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPHelper.buildBeans(RelatedCMPHelper.java:366) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.createBeans(RelatedCMPWizard.java:382) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.access$000(RelatedCMPWizard.java:87) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard$1.run(RelatedCMPWizard.java:294)
Created attachment 102749 [details] stacktrace
Created attachment 102751 [details] SQL script that generates a schema in Java DB that can be used to reproduce the issue First of all, apologies for the huge attachment. The attached SQL script can be used to generate a database schema on JavaDB that can be used to reproduce the issue. Once the schema has been created, simply attempt to generate JPA entities from it.
will try to evaluate in a week
*** Bug 191641 has been marked as a duplicate of this bug. ***
>P2 it's regression, and it's already have several reports, may affect most cases with join table usage
http://hg.netbeans.org/web-main/rev/3669047c30dd fixed, should be in release but likely not in beta
also will be available in some daily builds after a few days.
Great, thanks for taking care of this. I can't wait to try it out when the fix hits the nightly builds.
Verified fix in NetBeans nightly build 201011130001
*** Bug 192311 has been marked as a duplicate of this bug. ***