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 102263 - Create Entity Class from Database fails on attached schema
Summary: Create Entity Class from Database fails on attached schema
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 03:00 UTC by Chris Webster
Modified: 2007-04-24 15:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
db schema file causing the issue (1.03 MB, application/octet-stream)
2007-04-24 03:00 UTC, Chris Webster
Details
exception stack trace (1.86 KB, text/plain)
2007-04-24 03:01 UTC, Chris Webster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2007-04-24 03:00:04 UTC
When running the create entity class from database wizard, an exception dialog
is shown, but the error message is not very helpful. 

Additional information: JDK 1.6_01
The subversion plugin was installed and the generation directory was a
subversion controlled directory.
Comment 1 Chris Webster 2007-04-24 03:00:54 UTC
Created attachment 41514 [details]
db schema file causing the issue
Comment 2 Chris Webster 2007-04-24 03:01:38 UTC
Created attachment 41515 [details]
exception stack trace
Comment 3 Erno Mononen 2007-04-24 08:43:58 UTC
I'll take a look at this.
Comment 4 Erno Mononen 2007-04-24 10:04:36 UTC
I can't reproduce with the latest build nor with 6.0 M8 on JDK 6 / Linux. The 
generator has changed quite a bit since 5.5, so perhaps this has been fixed 
already. What is a bit strange is that the stack trace indicates that the 
generation failed when generating "DbLiteral" entity class, but I can't see any 
corresponding table in the attached schema - should it include such table? 
Also, please try if you can reproduce this with the latest build.
Comment 5 Chris Webster 2007-04-24 15:29:06 UTC
This problem is not there in 6.0, this was encountered using 5.5. We added Db to
all the generated class names in the last panel of the wizard, so the table in
question is LITERAL. 
Comment 6 Erno Mononen 2007-04-24 15:47:38 UTC
OK, thanks for the info. I'm closing this as fixed - if there will be 5.5.2, 
perhaps this issue should be considered to be fixed for it.