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 - Allow a choice between composite key generation types when creating entities
Summary: Allow a choice between composite key generation types when creating entities
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal with 7 votes (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
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
Exception Reporter:


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.