Comments on: Mapping composite primary keys in JPA How to work around a bug in Hibernate Annotations https://technology.amis.nl/2008/05/18/mapping-composite-primary-keys-in-jpa-how-to-work-around-a-bug-in-hibernate-annotations/ Friends of Oracle and Java Wed, 08 Jul 2015 07:37:03 +0000 hourly 1 http://wordpress.org/?v=4.2.3 By: Rakesh https://technology.amis.nl/2008/05/18/mapping-composite-primary-keys-in-jpa-how-to-work-around-a-bug-in-hibernate-annotations/#comment-5340 Thu, 13 Jan 2011 12:12:29 +0000 http://technology.amis.nl/blog/?p=3177#comment-5340 I just saw one article , which explain implementation of composite primary key using annotation with simple example.
http://j2eereference.com/2011/01/implementing-composit-primary-key-with-jpa-and-hibernate/

]]>
By: p3t0r https://technology.amis.nl/2008/05/18/mapping-composite-primary-keys-in-jpa-how-to-work-around-a-bug-in-hibernate-annotations/#comment-5339 Mon, 19 May 2008 20:30:35 +0000 http://technology.amis.nl/blog/?p=3177#comment-5339 Personally I prefer to use javax.persistence.EmbeddedId / javax.persistence.Embeddable to nicely group the attributes of the key in a single object without having to duplicate them in the parent object. Also, having the embeddable annotation on the Id object instantaneously tell other developers how the object should be be used…

]]>