JPA Annotation Attribute
in javax.persistence.Basic

boolean optional default true


(Optional) Defines whether the value of the field or property may be null. This is a hint and is disregarded for primitive types; it may be used in schema generation. If not specified, defaults to true.
Since:
JPA 1.0