JPA Annotation Attribute
in jakarta.persistence.Basic

boolean optional default true


(Optional) Specifies 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 to infer that the mapped column is not null.

If not specified, defaults to true.

Since:
JPA 1.0