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 224966

Summary: Allow a choice between composite key generation types when creating entities
Product: javaee Reporter: mienamoo
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P2    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description mienamoo 2013-01-16 13:43:23 UTC
When entities are generated from a database, it would be quite useful IMHO to be able to choose how composite primary keys should be represented in the generated code. Currently these primary keys are always generated with @EmbeddedId. However, I would appreciate being able to choose to use @IdClass instead.
Comment 1 cdelahunt 2013-01-17 06:45:55 UTC
I agree, I think that this would be a really nice feature.