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

Summary: Entity classes from database are badly generated
Product: javaee Reporter: Michal Mocnak <mmocnak>
Component: PersistenceAssignee: Andrei Badea <abadea>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 91265    
Bug Blocks: 91682    

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