getDeclaredSingularAttribute(name) - JPA ManagedType's method
Method javax.persistence.metamodel.ManagedType
SingularAttribute<X,?> getDeclaredSingularAttribute(
String name
)
Return the single-valued attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- declared single-valued attribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0