@javax.persistence.OneToOne

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.
|
@javax.persistence.OneToOne( |
definiert eine 1:1 Beziehung
|
|
targetEntity = Invoice1.class, |
definiert die andere Seite der Beziehung; die Angabe |
|
cascade = {CascadeType.ALL}, |
Array von CascadeType � siehe Kapitel |
|
fetch=FetchType.EAGER, |
legt fest, ob die andere Seite der Beziehung erst |
|
optional=true, |
Ist der Wert false |
|
mappedBy=“otherSideProperty” |
legt fest, dass in einer bidirektionalen Beziehung, |
|
) |
|
|
import import @OneToOne(cascade @JoinColumn(name private |
|