Top Description Methods
jakarta.persistence

public Interface Subgraph<T>

extends Graph<T>
Type Parameters
<T>
The type of the attribute.

This type represents a subgraph for an attribute node that corresponds to a managed type. Using this class, an entity subgraph can be embedded within an EntityGraph.
Since
2.1
See Also
EntityGraph, AttributeNode, NamedSubgraph

Method Summary

Modifier and TypeMethod and Description
public Class<T>

Returns:

managed type referenced by the subgraph
getClassType
()

Return the type for which this subgraph was defined.

Inherited from jakarta.persistence.Graph:
addAttributeNodeaddAttributeNodeaddAttributeNodesaddAttributeNodesaddElementSubgraphaddElementSubgraphaddElementSubgraphaddKeySubgraphaddKeySubgraphaddKeySubgraphaddKeySubgraphaddMapKeySubgraphaddSubgraphaddSubgraphaddSubgraphaddSubgraphaddTreatedElementSubgraphaddTreatedMapKeySubgraphaddTreatedSubgraphgetAttributeNodegetAttributeNodegetAttributeNodeshasAttributeNodehasAttributeNoderemoveAttributeNoderemoveAttributeNoderemoveAttributeNodes

Method Detail

getClassTypeback to summary
public Class<T> getClassType()

Return the type for which this subgraph was defined.

Returns:Class<T>

managed type referenced by the subgraph