Bug 305 : ENHANCEMENT - Use @CompositeId ... as alternative to @EmbeddedId etc
Priority 
Medium
Reported Version 
 
Logged By 
Rob
Status 
New
Fixed Version 
 
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
26/05/2010
Updated 
26/05/2010
Type 
Bug
 
Attachments 
No attachments

Couldn't we simplify the process of using compound keys?

Something like:

@Entity
class Item {

@CompositeId
int itemId;

@CompositeId
int orderId;

....

I think that the only caveat would be if I have a CompoundId field that is
also a foreign key(then we have to put insertable=false updatable=false all
the ugly stuff)

 
woResponse

Upload a file