JPA Method
in javax.persistence.metamodel.SingularAttribute

boolean isId()


Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class.
Return:
boolean indicating whether the attribute is an id
Since:
JPA 2.0