Package org.hibernate.graph
Interface RootGraph<J>
- All Superinterfaces:
EntityGraph<J>
,Graph<J>
,Graph<J>
,GraphNode<J>
- All Known Subinterfaces:
RootGraphImplementor<J>
- All Known Implementing Classes:
RootGraphImpl
Extends the JPA-defined
EntityGraph
with additional operations.- See Also:
-
SubGraph
Session.createEntityGraph(Class)
Session.createEntityGraph(String)
SharedSessionContract.createEntityGraph(Class, String)
SessionFactory.findEntityGraphByName(String)
SessionFactory.createGraphForDynamicEntity(String)
EntityGraphs.createGraph(EntityType)
EntityGraphs.createGraphForDynamicEntity(EntityType)
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> SubGraph<? extends T>
addSubclassSubgraph
(Class<? extends T> type) Deprecated, for removal: This API element is subject to removal in a future version.Planned for removal in JPA 4makeCopy
(boolean mutable) Make a copy of this graph node, with the given mutability.makeRootGraph
(String name, boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.makeSubGraph
(boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface jakarta.persistence.EntityGraph
addTreatedSubgraph, getName
Methods inherited from interface jakarta.persistence.Graph
addAttributeNode, addAttributeNodes, addAttributeNodes, getAttributeNodes, hasAttributeNode, hasAttributeNode, removeAttributeNode, removeAttributeNode, removeAttributeNodes
Methods inherited from interface org.hibernate.graph.Graph
addAttributeNode, addElementSubgraph, addElementSubgraph, addElementSubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addMapKeySubgraph, addPluralSubgraph, addSubgraph, addSubgraph, addSubgraph, addSubgraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addTreatedElementSubgraph, addTreatedElementSubgraph, addTreatedMapKeySubgraph, addTreatedMapKeySubgraph, addTreatedSubgraph, addTreatedSubgraph, addTreatedSubgraph, addTreatedSubgraph, findAttributeNode, findAttributeNode, getAttributeNode, getAttributeNode, getAttributeNodeList, getGraphedType
-
Method Details
-
makeCopy
Description copied from interface:Graph
Make a copy of this graph node, with the given mutability.If this graph is immutable, and the argument is
false
, simply return this instance. -
makeRootGraph
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Graph
Create a named root graph representing this node.- Specified by:
makeRootGraph
in interfaceGraph<J>
mutable
- controls whether the resulting graph is mutable
-
makeSubGraph
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Graph
Create a new subgraph representing this node.- Specified by:
makeSubGraph
in interfaceGraph<J>
-
addSubclassSubgraph
@Deprecated(forRemoval=true) default <T> SubGraph<? extends T> addSubclassSubgraph(Class<? extends T> type) Deprecated, for removal: This API element is subject to removal in a future version.Planned for removal in JPA 4- Specified by:
addSubclassSubgraph
in interfaceEntityGraph<J>
-