Jakarta Persistence (JPA) Method
Subgraph<X> addElementSubgraph(
String attributeName,
Class<X> type
)
Add a node to the graph that corresponds to a collection element that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
- Parameters:
attributeName- name of the attributetype- entity subclass
- Returns:
- subgraph for the element attribute.
- Throws:
- if this EntityGraph has been statically defined.IllegalStateException- if the attribute's target type is not a managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0