public class CascadePolicy
extends java.lang.Object
Cascade policy hint values.
The class contains all the valid values for QueryHints.REFRESH_CASCADE query hint.
JPA Query Hint Usage:
query.setHint(QueryHints.REFRESH_CASCADE, CascadePolicy.CascadeAllParts);
or
@QueryHint(name=QueryHints.REFRESH_CASCADE, value=CascadePolicy.CascadeAllParts)
Hint values are case-insensitive. "" could be used instead of default value CascadePolicy.DEFAULT.
QueryHints
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CascadeAllParts |
static java.lang.String |
CascadeByMapping |
static java.lang.String |
CascadePrivateParts |
static java.lang.String |
DEFAULT |
static java.lang.String |
NoCascading |
Constructor and Description |
---|
CascadePolicy() |
public static final java.lang.String NoCascading
public static final java.lang.String CascadePrivateParts
public static final java.lang.String CascadeAllParts
public static final java.lang.String CascadeByMapping
public static final java.lang.String DEFAULT