Subgraph<X> addKeySubgraph(
String attributeName
)
Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
- Parameters:
attributeName
- name of the attribute
- Return:
- subgraph for the key attribute
- Throws:
- IllegalArgumentException - if the attribute is not an attribute of this entity.
- IllegalArgumentException - if the attribute's target type is not an entity
- IllegalStateException - if this EntityGraph has been statically defined
- IllegalArgumentException - if the attribute's target type is not an entity
- Since:
- JPA 2.1