Top Description Fields Constructors Methods
org.hibernate.graph

public final Enum GraphSemantic

extends Enum<GraphSemantic>
Class Inheritance
Imports
java.util.Locale, org.hibernate.AssertionFailure, org.hibernate.jpa.LegacySpecHints

JPA specifies two distinct ways to apply an jakarta.persistence.EntityGraph - as a "fetch graph" or as a "load graph".
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final GraphSemantic
FETCH

Indicates that an jakarta.persistence.EntityGraph should be interpreted as a JPA "fetch graph".

public static final GraphSemantic
LOAD

Indicates that an jakarta.persistence.EntityGraph should be interpreted as a JPA "load graph".

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GraphSemantic
fromHintName(String hintName)

public static GraphSemantic
fromJpaHintName(String hintName)

Deprecated since 6.0. Use fromHintName instead
public String
getJakartaHintName()

The corresponding Jakarta Persistence hint name.

public String
getJpaHintName()

Deprecated since 6.0. Use getJakartaHintName instead
The hint name that should be used with Java Persistence.
public static GraphSemantic
public static GraphSemantic[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FETCHback to summary
public static final GraphSemantic FETCH

Indicates that an jakarta.persistence.EntityGraph should be interpreted as a JPA "fetch graph".

LOADback to summary
public static final GraphSemantic LOAD

Indicates that an jakarta.persistence.EntityGraph should be interpreted as a JPA "load graph".

Constructor Detail

GraphSemanticback to summary
private GraphSemantic()

Method Detail

fromHintNameback to summary
public static GraphSemantic fromHintName(String hintName)
fromJpaHintNameback to summary
public static GraphSemantic fromJpaHintName(String hintName)

Deprecated

since 6.0.

Use fromHintName instead

Annotations
@Deprecated
since:6.0
getJakartaHintNameback to summary
public String getJakartaHintName()

The corresponding Jakarta Persistence hint name.

See Also
org.hibernate.jpa.SpecHints#HINT_SPEC_FETCH_GRAPH, org.hibernate.jpa.SpecHints#HINT_SPEC_LOAD_GRAPH
getJpaHintNameback to summary
public String getJpaHintName()

Deprecated

since 6.0.

Use getJakartaHintName instead

The hint name that should be used with Java Persistence.

Annotations
@Deprecated
since:6.0
See Also
org.hibernate.jpa.LegacySpecHints#HINT_JAVAEE_FETCH_GRAPH, org.hibernate.jpa.LegacySpecHints#HINT_JAVAEE_LOAD_GRAPH
valueOfback to summary
public static GraphSemantic valueOf(String name)
valuesback to summary
public static GraphSemantic[] values()