ObjectDB ObjectDB

OneToOne.orphanRemoval - JPA annotation element

Annotation Element
javax.persistence.OneToOne
boolean orphanRemoval

(Optional) Whether to apply the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities.
Default value:
false
Since:
JPA 2.0