Enum Class CascadeType

java.lang.Object
java.lang.Enum<CascadeType>
org.hibernate.annotations.CascadeType
All Implemented Interfaces:
Serializable, Comparable<CascadeType>, java.lang.constant.Constable

public enum CascadeType extends Enum<CascadeType>
Enumerates the persistence operations which may be cascaded from one entity instance to associated entity instances.

This enumeration of cascade types competes with the JPA-defined enumeration CascadeType, but offers additional options, including LOCK.

To enable cascade LOCK, use @Cascade, for example:

 @OneToMany(mappedBy="parent")
 @Cascade({PERSIST,REFRESH,REMOVE,LOCK})
 Set<Child> children;
 
See Also: