EclipseLink1.0 - 20080707 API Reference

org.eclipse.persistence.annotations
Annotation Type PrivateOwned


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface PrivateOwned

A PrivateOwned annotation is used to specify a relationship is privately owned. A privately owned relationship means the target object is a dependent part of the source object and is not referenced by any other object and cannot exist on its own. Private ownership causes many operations to be cascaded across the relationship, including, deletion, insertion, refreshing, locking (when cascaded). It also ensures that private objects removed from collections are deleted and object added are inserted. A PrivateOwned annotation can be used in conjunction with a BasicCollection, BasicMap, OneToOne, and OneToMany annotation.

Author:
Guy Pelletier
Since:
Oracle TopLink 11.1.1.0.0


EclipseLink1.0 - 20080707 API Reference