ObjectDB ObjectDB

getDeclaredId(type) - JPA IdentifiableType's method

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:
IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class
Since:
JPA 2.0