[hibernate-dev] Composite ID suggestion

Emmanuel Bernard emmanuel at hibernate.org
Sat May 8 07:57:53 EDT 2010


It's already supported (not your syntax though).
Check out the reference doc or use the user forum.


On 7 mai 2010, at 20:26, Ω Alisson <thelinuxlich at gmail.com> wrote:

> 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;
> }
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list