Package org.hibernate.graph
Enum Class GraphSemantic
- All Implemented Interfaces:
Serializable
,Comparable<GraphSemantic>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that anEntityGraph
should be interpreted as a JPA "fetch graph".Indicates that anEntityGraph
should be interpreted as a JPA "load graph". -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphSemantic
fromHintName
(String hintName) static GraphSemantic
fromJpaHintName
(String hintName) Deprecated.The corresponding Jakarta Persistence hint name.Deprecated.UsegetJakartaHintName()
insteadstatic GraphSemantic
Returns the enum constant of this class with the specified name.static GraphSemantic[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FETCH
Indicates that anEntityGraph
should be interpreted as a JPA "fetch graph".- Attributes explicitly specified using an
AttributeNode
s are treated asFetchType.EAGER
and fetched via a join or subsequent select. - Attributes not explicitly specified are treated as
FetchType.LAZY
and are not fetched.
- Attributes explicitly specified using an
-
LOAD
Indicates that anEntityGraph
should be interpreted as a JPA "load graph".- Attributes explicitly specified using an
AttributeNode
s are treated asFetchType.EAGER
and fetched via a join or subsequent select. - Attributes not explicitly specified are treated as
FetchType.LAZY
orFetchType.EAGER
depending on the mapping of the attribute, instead of forcingFetchType.LAZY
.
- Attributes explicitly specified using an
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getJakartaHintName
The corresponding Jakarta Persistence hint name. -
getJpaHintName
Deprecated.UsegetJakartaHintName()
insteadThe hint name that should be used with Java Persistence. -
fromHintName
-
fromJpaHintName
Deprecated.UsefromHintName(java.lang.String)
instead
-
fromHintName(java.lang.String)
instead