Package org.hibernate.graph

Enum Class GraphSemantic

java.lang.Object
java.lang.Enum<GraphSemantic>
org.hibernate.graph.GraphSemantic
All Implemented Interfaces:
Serializable,Comparable<GraphSemantic>,Constable

public enumGraphSemanticextendsEnum<GraphSemantic>
JPA specifies two distinct ways to apply anEntityGraph - as a"fetch graph" or as a"load graph".
  • Enum Constant Details

    • FETCH

      public static final GraphSemantic FETCH
      Indicates that anEntityGraph should be interpreted as a JPA "fetch graph".
      • Attributes explicitly specified using anAttributeNodes are treated asFetchType.EAGER and fetched via a join or subsequent select.
      • Attributes not explicitly specified are treated asFetchType.LAZY and are not fetched.
    • LOAD

      public static final GraphSemantic LOAD
      Indicates that anEntityGraph should be interpreted as a JPA "load graph".
      • Attributes explicitly specified using anAttributeNodes are treated asFetchType.EAGER and fetched via a join or subsequent select.
      • Attributes not explicitly specified are treated asFetchType.LAZY orFetchType.EAGER depending on the mapping of the attribute, instead of forcingFetchType.LAZY.
  • Method Details