@javax.persistence.IdClass

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.IdClass(

legt die Klasse fest, die einen zusammengesetzten Prim�rschl�ssel speichert

value=SpottedTurtleId.class

den Klassennamen der Prim�rschl�sselklasse

)


@IdClass(SpottedTurtleId.class)

public class SpottedTurtle implements Serializable {

@Id

private String location;

@Id

private String favoriteSalad;