I think nullable is used if you create a schema using an entitymanager implementation. I do not know if it should / should be checked, while preserving the object.
, , @NotNull, JPA. JSR-303
Stackoverflow , :
fooobar.com/questions/40968/...
EDIT: JPA 2.1 :
11.2.2.1
:
ColumnDefinition
( ) ( (/) ) ( (/) ) . 11.1.9 , . AttributeOverride .
, :
JPA EntityManager , , DB (, notnull)
, Entitymanager BUT, . , DB , EntityManager .
, NULL DB, entitymanager → persist - , , .