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 161679 - [67cat] newly-added tables not presented for entity class creation
Summary: [67cat] newly-added tables not presented for entity class creation
Status: RESOLVED DUPLICATE of bug 156920
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on: 156920
Blocks:
  Show dependency tree
 
Reported: 2009-04-01 15:33 UTC by gholmer
Modified: 2009-07-29 12:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
database schema (2.34 MB, text/xml)
2009-05-12 15:50 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2009-04-01 15:33:09 UTC
[ BUILD # : 200903310200 ]
[ JDK VERSION : 1.6.* ]

I have an enterprise app with previously generated entity classes.
I've made changes to my database that include adding tables, and I
want to create entity classes for the new tables. But the new tables
are not listed in the dialog.

0) Stop GlassFish, delete existing database.
1) Create new database from changed DDL, restart GlassFish.
2) In EJB subproject, right-click db schema and select "Recapture
Schema from Database". Appears to complete normally.
3) When db schema tree in "Configuration Files" is expanded, new
tables do not appear.
4) Right-click EJB subproject and select "New/Entity Classes from
Database".
5) "Database Schema" radio button is selected in dialog by default,
but new tables do not appear under "Available Tables".
6) If I select "Data Source" radio button instead, I see the database
connection I previously created in the Databases node of the Servers
tab. If I select that, the new tables do appear; after creating
entity classes from them, they now also appear in the db schema tree.

I am using my own copy of GlassFish; it appears in the Servers tab
and shows the expected information. I am able to deploy to it from
NetBeans.
Comment 1 gholmer 2009-04-01 15:40:42 UTC
Correction: The data sources in step 6) were actually those set up in GlassFish as JDBC resources.  I have similar
connections set up in the Databases node of the Servers tab, so I thought that's where they were coming from.
Comment 2 gholmer 2009-04-29 20:35:34 UTC
I saw this again today in build 200904290201.
Comment 3 pslechta 2009-05-12 10:40:48 UTC
Hello,

I believe the problem is in step 3) "When db schema tree in "Configuration Files" is expanded, new tables do not appear."

If the new tables are not visible, I think something did not complete properly. Then it is no surprise that wizard does
not see the tables too.

Can you please attach the schema which does not work for you? I would like to retest with latest bits.
Thank you in advance!
Comment 4 gholmer 2009-05-12 15:50:53 UTC
Created attachment 81980 [details]
database schema
Comment 5 gholmer 2009-05-12 15:53:57 UTC
Database schema attached.  We just added a few tables and the same thing happened; the tables added were skucolorgroup,
skucolorgroupi18n, and colortogroup.
Comment 6 pslechta 2009-05-13 13:31:30 UTC
Adding dependency of this issue on Issue 156920...
Reporter, can you confirm that you can reproduce the problem in Issue 156920 ?  Thanks!
Comment 7 Sergey Petrov 2009-07-29 12:22:02 UTC
in my opinion it's exactly issue 156920, feel free to reopen if it's not and provide detailes mentioned above, thanks.

*** This issue has been marked as a duplicate of 156920 ***