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 - Missing annotations @GeneratedValue when generating entity class from existing table
Summary: Missing annotations @GeneratedValue when generating entity class from existin...
Status: RESOLVED DUPLICATE of bug 76357
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 10:51 UTC by lukaszlenart
Modified: 2008-04-02 20:42 UTC (History)
0 users

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 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 ***