@javax.persistence.EmbeddedId

hibernate buch cover klein

Extract of the annotation reference in the Hibernate Developer Guide by example


Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.


It is available as PDF in English language.
A German paper book was published by the Galileo Verlag.


Get more information.

@javax.persistence.EmbeddedId

definiert die Klassen, welche den zusammengesetzten
Prim�rschl�ssel enth�lt; Der Unterschied zu
@IdClass ist, dass die Attribute nur in der
Prim�rschl�sselklasse vorhanden sind.

@Entity

public
class BoxTurtle implements Serializable {


@EmbeddedId



private
BoxTurtleId id;