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 177448 - [68cat] Entities with autoincrement id not generated correctly
Summary: [68cat] Entities with autoincrement id not generated correctly
Status: RESOLVED DUPLICATE of bug 172072
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on: 172072
Blocks:
  Show dependency tree
 
Reported: 2009-11-23 08:52 UTC by javydreamercsw
Modified: 2011-10-11 15:29 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 javydreamercsw 2009-11-23 08:52:46 UTC
Build 200911220201

I might be asking too much or this might be considered an enhancement. If you have a table that has an integer id marked as auto increment the Generation strategy in the entity is GenerationType.IDENTITY instead of GenerationType.AUTO. This also makes default construtors with the id parameter when it shouldn't be prompted as it is assigned by the database at runtime.

Entities needs to be modified manually each time they are generated.
Comment 1 Sergey Petrov 2010-03-01 07:53:29 UTC
this(or almost the same) is assigned for db for evaluation for now, as db|schema functionality in nb do not provide a way to separate identity/auto.
Comment 2 Sergey Petrov 2011-10-11 15:29:11 UTC

*** This bug has been marked as a duplicate of bug 172072 ***