Bug 224966 - Allow a choice between composite key generation types when creating entities
Allow a choice between composite key generation types when creating entities
Status: NEW
Product: javaee
Classification: Unclassified
Component: Persistence
7.3
PC Windows 7
: P2 with 7 votes (vote)
: TBD
Assigned To: Sergey Petrov
issues@javaee
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-16 13:43 UTC by mienamoo
Modified: 2013-01-17 06:45 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo