Jakarta Persistence (JPA) Method

void removeAttributeNode(
  String attributeName
)


Remove an attribute node from the entity graph. When this graph is interpreted as a load graph, this operation suppresses inclusion of an attribute mapped for eager fetching. The effect of this call may be overridden by subsequent invocations of Graph.addAttributeNode or Graph.addSubgraph . If there is no existing node for the given attribute name, this operation has no effect.
Parameters:
attributeName - name of the attribute
Since:
Jakarta Persistence (JPA) 3.2