[hibernate-dev] Composite ID suggestion

Ω Alisson thelinuxlich at gmail.com
Fri May 7 14:26:31 EDT 2010


Couldn't we simplify the process of using compound keys? Actually the
official JPA implementation sux a lot in my opinion(extra classes with
@Embeddable and @EmbeddedId on the parent side).

Something like:

@Entity
class Item {

  @CompositeId
  int itemId;

  @CompositeId
  int orderId;
}



More information about the hibernate-dev mailing list