<DataSource
    ID="reusableORMDataSource_supplyItem"
    serverConstructor="com.isomorphic.examples.server.reusableORMDataSource.ReusableORMDataSource"
    mappedBeanClass="com.isomorphic.examples.SupplyItemHB"
>
    <fields>
        <field name="itemID"        type="sequence"     hidden="true"           primaryKey="true" />
        <field name="itemName"      type="text"         title="Item"            length="128"        required="true" />
        <field name="SKU"           type="text"         title="SKU"             length="10"         required="true" />
        <field name="description"   type="text"         title="Description"     length="2000" />
        <field name="category"      type="text"         title="Category"        length="128"        required="true" />
        <field name="units"         type="enum"         title="Units"           length="5">
            <valueMap>
                <value>Roll</value>
                <value>Ea</value>
                <value>Pkt</value>
                <value>Set</value>
                <value>Tube</value>
                <value>Pad</value>
                <value>Ream</value>
                <value>Tin</value>
                <value>Bag</value>
                <value>Ctn</value>
                <value>Box</value>
            </valueMap>
        </field>
        <field name="unitCost"      type="float"        title="Unit Cost"       required="true" />
        <field name="inStock"       type="boolean"      title="In stock"        />
        <field name="nextShipment"  type="date"         title="Next shipment"   />
    </fields>
    
</DataSource>
 
