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 115124 - Entities from DB wizard always generates non-primitive IDs
Summary: Entities from DB wizard always generates non-primitive IDs
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 09:23 UTC by Erno Mononen
Modified: 2016-07-07 08:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2007-09-10 09:23:04 UTC
The Entity Classes from Database wizard always generates classes with a non-primitive primary key field. This is 
because the same code is also used for generating CMPs, which require that the primary key field is not a primitive. 
While non-primitive primary keys work fine for JPA entities as well, this is not a requirement for them and it would 
probably be better to prefer primitives when possible, or at least provide an option for that. Implementing this 
requires some changes in the APIs to allow passing information about the generation context to 
o.n.m.j2ee.persistence.entitygenerator.EntityMember.
Comment 1 Martin Balin 2016-07-07 08:56:07 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss