JPA Method
in jakarta.persistence.Graph

AttributeNode<Y> addAttributeNode(
  String attributeName
)


Get an existing attribute node for the attribute with the given name, or add a new attribute node if there is no existing node.
Parameters:
attributeName - name of the attribute
Return:
the attribute node
Throws:
IllegalArgumentException - if the attribute is not an attribute of this entity.
IllegalStateException - if the EntityGraph has been statically defined
Since:
JPA 3.2