public enum CascadeType extends Enum<CascadeType>
| Enum Constant and Description |
|---|
AUTO
|
DELETE
Defines that when the declaring type of an attribute is deleted, elements of the attribute are deleted as well.
|
PERSIST
Defines that new elements should be persisted.
|
UPDATE
Defines that existing elements should be updated.
|
| Modifier and Type | Method and Description |
|---|---|
static CascadeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CascadeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CascadeType AUTO
public static final CascadeType PERSIST
public static final CascadeType UPDATE
public static final CascadeType DELETE
UpdatableMapping.orphanRemoval() is active for the attribute
or when the attribute is an inverse attribute. The MappingInverse.removeStrategy() defines how the deletion is done.public static CascadeType[] values()
for (CascadeType c : CascadeType.values()) System.out.println(c);
public static CascadeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2018 Blazebit. All rights reserved.