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 114315 - JPA "Entity Classes from Database" does not retrieve IDENTITY columns
Summary: JPA "Entity Classes from Database" does not retrieve IDENTITY columns
Status: RESOLVED DUPLICATE of bug 87023
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-31 08:57 UTC by jonathanvilalopez
Modified: 2007-09-04 08:17 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 jonathanvilalopez 2007-08-31 08:57:48 UTC
When you do File->New->"Persistence"->"Entity Classes from Database" and selects a SQL Server 2000 Database ( I do not
know if if occurs with others ) and selects the tables, Netbeans creates all the classes needed, but, if some tables has
an IDENTITY column Netbeans does not add the text "@GeneratedValue(strategy=GenerationType.IDENTITY)"....so one have to
do thad handy for every table in the database....and every time one recapture the schema ( deleting classes and
reversing again ) one have to do the same process.

P.S: I have put this issue in IDE->UI  because I dont know where to put.
Comment 1 jonathanvilalopez 2007-08-31 09:00:19 UTC
I forgot to say....I'm using TOPLINK as the O.R. layer....and the Microsoft SQL Server 2000 JDBC driver.
Comment 2 novakm 2007-09-03 09:32:29 UTC
Reassigning to j2ee for evaluation.
Comment 3 Andrei Badea 2007-09-04 08:17:09 UTC

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