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 20060517] I have a App server with own datasource (jdbc/mySQL). Then, I would like to create entity classes from jdbc/samples datasource. I selected jdbc/samples DS in combo box on first page of New entity classes from DB wizard and then wen to next panel. On this panel right tables (from correct DB) were selected and then generated. ERROR: In persistence.xml is incorrect DS used in jta-data-source element (jdbc/mySQL is used instead correct one).
After discussing it with Petr it was revealed that an incorrect data source was selected in the dialog for creating a persistence unit which is displayed when clicking the Create Persistence Unit dialog in the last panel of the Entity Classes from DB wizard.
Fixed. Checking in src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/DatabaseTablesPanel.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Attic/DatabaseTablesPanel.java,v <-- DatabaseTablesPanel.java new revision: 1.1.2.24; previous revision: 1.1.2.23 done