Jakarta Persistence (JPA) Method

SingularAttribute<? super X,?> getSingularAttribute(
  String name
)


Return the single-valued attribute of the managed type that corresponds to the specified name.
Parameters:
name - the name of the represented attribute
Returns:
single-valued attribute with the given name.
Throws:
IllegalArgumentException - if attribute of the given name is not present in the managed type.
Since:
Jakarta Persistence (JPA) 1.0