isId() - JPA SingularAttribute's method
Method 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.
- Returns:
- boolean indicating whether the attribute is an id
- Since:
- JPA 2.0