Jakarta Persistence (JPA) Method

AttributeNode<Y> addAttributeNode(
  Attribute<? super T,Y> attribute
)


Get an existing attribute node for the given attribute, or add a new attribute node if there is no existing node.
Parameters:
attribute - attribute
Returns:
the attribute node.
Throws:
IllegalStateException - if the EntityGraph has been statically defined.
Since:
Jakarta Persistence (JPA) 3.2