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 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 code attribute is a sequential integer, with the first option beginning at 0.

resource

If you specify a resource bundle for this property with the <attribute name=resourceBundle> tag, the resource attribute specifies the resource bundle key that holds the string value of this property option. See Localizing SQL Repository Definitions.

Optional.

 
loading table of contents...