An enumeration constraint. Syntax is:
<column one-of="value1,value2,value3..."/>
Or:
<column>
<one-of [message="error-message"]>
<value>value1</value>
<value>value2</value>
<value>value3</value>
...
</one-of>
</column>
Note: this constraint is not meant to replace an internal SQL enumeration constraint clause in the database,
since it cannot be made sure that complex updates will respect this constraint.
author: Claude Brisson |