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 131805

Summary: Missing annotations @GeneratedValue when generating entity class from existing table
Product: javaee Reporter: lukaszlenart <lukaszlenart>
Component: PersistenceAssignee: Andrei Badea <abadea>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description lukaszlenart 2008-04-02 10:51:52 UTC
I created MySQL table with primary key on auto incremental column but NetBeans did not add needed annotations for such
column type when I use option Entity classes from Database, it should be added something like this:
@GeneratedValue(strategy=GenerationType.IDENTITY)
Comment 1 Rochelle Raccah 2008-04-02 20:42:10 UTC

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