Class NamedEntityGraph
java.lang.Object
com.cosium.spring.data.jpa.entity.graph.domain2.NamedEntityGraph
- All Implemented Interfaces:
EntityGraph
Refers to a registered
EntityGraph by its name.- Author:
- Réda Housni Alaoui
-
Field Summary
Fields inherited from interface com.cosium.spring.data.jpa.entity.graph.domain2.EntityGraph
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionNamedEntityGraph(EntityGraphType type, String name) NamedEntityGraph(String name) -
Method Summary
Modifier and TypeMethodDescriptionbuildQueryHint(javax.persistence.EntityManager entityManager, Class<?> entityType) booleanstatic NamedEntityGraphWhen the javax.persistence.fetchgraph property is used to specify an entity graph, attributes that are specified by attribute nodes of the entity graph are treated as FetchType.EAGER and attributes that are not specified are treated as FetchType.LAZYinthashCode()static NamedEntityGraphWhen the javax.persistence.loadgraph property is used to specify an entity graph, attributes that are specified by attribute nodes of the entity graph are treated as FetchType.EAGER and attributes that are not specified are treated according to their specified or default FetchType.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cosium.spring.data.jpa.entity.graph.domain2.EntityGraph
execute
-
Constructor Details
-
NamedEntityGraph
-
NamedEntityGraph
-
-
Method Details
-
loading
When the javax.persistence.loadgraph property is used to specify an entity graph, attributes that are specified by attribute nodes of the entity graph are treated as FetchType.EAGER and attributes that are not specified are treated according to their specified or default FetchType. -
fetching
When the javax.persistence.fetchgraph property is used to specify an entity graph, attributes that are specified by attribute nodes of the entity graph are treated as FetchType.EAGER and attributes that are not specified are treated as FetchType.LAZY -
buildQueryHint
public Optional<EntityGraphQueryHint> buildQueryHint(javax.persistence.EntityManager entityManager, Class<?> entityType) - Specified by:
buildQueryHintin interfaceEntityGraph- Returns:
- A query hint to apply to a query. If empty, the entity graph will be ignored and therefore not applied to the query.
-
equals
-
hashCode
public int hashCode()
-