Top Description Fields Constructors Methods
org.hibernate.graph

public final Enum GraphSemantic

extends Enum<GraphSemantic>
Class Inheritance

JPA defines 2 distinct semantics for applying an EntityGraph. This enumeration captures those 2 semantics.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final GraphSemantic
FETCH

Indicates a "fetch graph" EntityGraph.

private final String
private final String
public static final GraphSemantic
LOAD

Indicates a "load graph" EntityGraph.

Constructor Summary

AccessConstructor and Description
private
GraphSemantic(String jpaHintName, String jakartaJpaHintName)

Method Summary

Modifier and TypeMethod and Description
public static GraphSemantic
public String
public String
public static GraphSemantic
public static GraphSemantic[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FETCHback to summary
public static final GraphSemantic FETCH

Indicates a "fetch graph" EntityGraph. Attributes explicitly specified as AttributeNodes are treated as FetchType.EAGER (via join fetch or subsequent select). Attributes that are not specified are treated as FetchType.LAZY invariably.

jakartaJpaHintNameback to summary
private final String jakartaJpaHintName
jpaHintNameback to summary
private final String jpaHintName
LOADback to summary
public static final GraphSemantic LOAD

Indicates a "load graph" EntityGraph. Attributes explicitly specified as AttributeNodes are treated as FetchType.EAGER (via join fetch or subsequent select). Attributes that are not specified are treated as FetchType.LAZY or FetchType.EAGER depending on the attribute's definition in metadata.

Constructor Detail

GraphSemanticback to summary
private GraphSemantic(String jpaHintName, String jakartaJpaHintName)

Method Detail

fromJpaHintNameback to summary
public static GraphSemantic fromJpaHintName(String hintName)
getJakartaJpaHintNameback to summary
public String getJakartaJpaHintName()
getJpaHintNameback to summary
public String getJpaHintName()
valueOfback to summary
public static GraphSemantic valueOf(String name)
valuesback to summary
public static GraphSemantic[] values()