Jakarta Persistence (JPA) Method

boolean optional


(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.

Default:
true
Since:
Jakarta Persistence (JPA) 1.0