@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 OneToOne,
OneToMany and VariableOneToOne annotation. Private ownership is implied
with the BasicCollection and BasicMap annotation.
- Author:
- Guy Pelletier
- Since:
- Oracle TopLink 11.1.1.0.0