About cascade

1-10 of 200Refresh
Manual
74

Entity Management Settings

" />    <cascade-persist always="auto ... , which is not an entity class, mapped super class or embeddable class). The <cascade-persist> element <cascade-persist always="auto" on-persist="false" on-commit="true" /> The <cascade-persist
Manual
71

Deleting JPA Entity Objects

method or implicitly as a result of a cascade operation. Explicit Remove In order to delete an object ... that modify the database require an active transaction. Cascading Remove Marking a reference field ... should be cascaded automatically to entity objects that are referenced by that field (multiple entity objects
Manual
71

Detached Entity Objects

object. Cascading Detach Marking a reference field with CascadeType.DETACH (or CascadeType.ALL, which includes DETACH) indicates that detach operations should be cascaded automatically to entity objects ... ): @Entity class Employee { : @OneToOne(cascade=CascadeType.DETACH) private Address
Manual
71

Retrieving JPA Entity Objects

entity objects. By default, a retrieval operation is automatically cascaded through all the non ... unacceptable. A persistent reference field can be excluded from this automatic cascaded retrieval by ... .EAGER, indicating that the retrieval operation is cascaded through the field. Explicitly specifying
Manual
71

Storing JPA Entity Objects

or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... of every reachable object or alternatively by setting automatic cascading persist. Cascading Persist Marking ... that persist operations should be cascaded automatically to entity objects that are referenced by
JPA Doc
60

ManyToMany.cascade

Annotation Element javax.persistence.ManyToMany CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. When the target collection is a java.util.Map, the cascade element applies to the map value. Defaults to no operations being cascaded. Default value: {} Since: JPA 1.0
JPA Doc
60

OneToMany.cascade

Annotation Element javax.persistence.OneToMany CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. Defaults to no operations being cascaded. When the target collection is a java.util.Map, the cascade element applies to the map value. Default value: {} Since: JPA 1.0
JPA Doc
59

ManyToOne.cascade

Annotation Element javax.persistence.ManyToOne CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. By default no operations are cascaded. Default value: {} Since: JPA 1.0
JPA Doc
59

OneToOne.cascade

Annotation Element javax.persistence.OneToOne CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. By default no operations are cascaded. Default value: {} Since: JPA 1.0
JDO Doc
57

ForeignKeyAction.CASCADE

Enum Constant javax.jdo.annotations.ForeignKeyAction CASCADE Since: JDO 2.1