Jakarta Persistence (JPA) Method

Subgraph<X> addSubgraph(
  Attribute<? super T,X> attribute
)


Add a node to the graph that corresponds to a managed type. This allows for construction of multi-node entity graphs that include related managed types.
Parameters:
attribute - attribute
Returns:
subgraph for the attribute.
Throws:
IllegalStateException - if the EntityGraph has been statically defined.
IllegalArgumentException - if the attribute's target type is not a managed type.
Since:
Jakarta Persistence (JPA) 1.0