ObjectDB ObjectDB

OneToOne.targetEntity - JPA annotation element

Annotation Element
javax.persistence.OneToOne
Class targetEntity

(Optional) The entity class that is the target of the association.

Defaults to the type of the field or property that stores the association.

Default value:
void.class
Since:
JPA 1.0