Jakarta Persistence (JPA) Method
Subgraph<K> addTreatedMapKeySubgraph(
MapAttribute<? super T,? super K,?> attribute,
Class<K> type
)
Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi-node entity graphs that include related managed types. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs
- Parameters:
attribute- attributetype- entity subclass
- Returns:
- subgraph for the attribute.
- Throws:
- if this EntityGraph has been statically defined.IllegalStateException- if the attribute's target type is not a managed type entity.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0