Enum CascadeType

  • All Implemented Interfaces:
    Serializable, Comparable<CascadeType>

    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:
    Cascade