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