A "not null" constraint. Syntax is:
<column not-null="true"/>
Or:
<column>
<not-null [message="error-message"]/>
</column>
To validate data coming from an HTML form, you should rather use the not-empty constraint since there cannot
be any null value.
Note: this constraint is not meant to replace an internal SQL "not-null" clause in the database,
since it cannot be made sure that complex updates will respect this constraint.
author: Claude Brisson |