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.

Bug 76534 - Incorrect datasource is used in persistence.xml
Summary: Incorrect datasource is used in persistence.xml
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 09:04 UTC by Petr Blaha
Modified: 2006-07-04 13:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2006-05-18 09:04:30 UTC
[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).
Comment 1 Andrei Badea 2006-05-31 10:04:08 UTC
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.
Comment 2 Andrei Badea 2006-07-04 13:35:05 UTC
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