A string length constraint. Syntax is:
<column min-len="min" max-len="max"/>
where you donnot need to specify both min-len and max-len.
Or:
<column>
<min-len value="min-value" [message="error-message"]>
<max-len value="max-value" [message="error-message"]>
</column>
Note: this constraint is not meant to replace an internal SQL constraint in the database,
since it cannot be made sure that complex updates will respect this constraint.
author: Claude Brisson |