For properties whose data type is enumerated
, use <option>
tags to indicate the possible values of the enumerated properties. For example:
<property name="gender" data-type="enumerated">
<option value="male" code="0"/>
<option value="female" code="1"/>
</property>
Option tags must be empty and have no child tags.
option Tag Attributes
Attribute | Description | Value |
---|---|---|
value | The value of the enumerated option. | Required. |
code | The integer code that represents the enumerated option in the database. | Optional. If no code is specified, an appropriate code is generated by the SQL repository. The value of the |
resource | If you specify a resource bundle for this property using the | Optional. |