Jakarta Persistence (JPA) Method
SingularAttribute<X,Y> getDeclaredId(
Class<Y> type
)
Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass.
- Parameters:
type- the type of the represented declared id attribute
- Returns:
- declared id attribute.
- Throws:
- if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0