JPA Method
in jakarta.persistence.Graph

AttributeNode<Y> addAttributeNode(
  Attribute<?superT,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
Return:
the attribute node
Throws:
IllegalStateException - if the EntityGraph has been statically defined
Since:
JPA 3.2