Subgraph<E> addElementSubgraph(
PluralAttribute<?superT,?,E> attribute
)
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:
attribute
- attribute
- Return:
- subgraph for the element attribute
- Throws:
- IllegalArgumentException - if the attribute's target type is not an entity
- IllegalStateException - if this EntityGraph has been statically defined
- Since:
- JPA 3.2