JPA Methodin javax.persistence.metamodel.SingularAttributeboolean isOptional() Can the attribute be null. Return: boolean indicating whether the attribute can be nullSince:JPA 2.0