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 92046 - Entity classes from database are badly generated
Summary: Entity classes from database are badly generated
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on: 91265
Blocks: 91682
  Show dependency tree
 
Reported: 2007-01-08 17:56 UTC by Michal Mocnak
Modified: 2007-01-10 12:25 UTC (History)
1 user (show)

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 Michal Mocnak 2007-01-08 17:56:54 UTC
Found in daily build #200701071900

1. start nb and register glassfish (i used glassfish v2 build 30)
2. create an EJB module
3. create Entity Classes from Database
4. use default sample database jdbc/sample
5. choose Customer table -> also DiscountCode will be chosen
6. create persistence unit (choose default settings)
7. finish the creating

=> Entity classes are generated but it contains only Named Queries ! There is no
columns declarations, there is no getters and setters ! Only non parametric
constructor and named queries !

Due to these classes can't be deployed on server !
Comment 1 Erno Mononen 2007-01-08 19:19:01 UTC
Probably because of issue 91265.
Comment 2 Andrei Badea 2007-01-09 13:39:26 UTC
That's right, adding dependency.
Comment 3 Jan Horvath 2007-01-10 09:01:08 UTC
this issue was fixed with the issue #91265
Comment 4 Jan Horvath 2007-01-10 12:25:37 UTC
verified in build 200701091900