Package org.hibernate.annotations

Enum CascadeType

  • All Implemented Interfaces:
    Serializable,Comparable<CascadeType>

    public enumCascadeTypeextendsEnum<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 enumerationCascadeType, but offers additional options, includingLOCK.

    To enable cascadeLOCK, use@Cascade, for example:

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