<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
                           "http://castor.org/mapping.dtd">
<mapping>
  <class name="ctf.jdo.tc0x.Sample" access="shared" identity="id">
    <map-to table="tc0x_sample" />
    <field name="id" type="integer">
      <sql name="id" type="integer" />
    </field>
    <field name="value1" type="string" required="true">
      <sql name="value1" type="varchar"/>
    </field>
    <field name="value2" type="string">
      <sql name="value2" type="varchar" dirty="ignore"/>
    </field>
  </class>

<!--
  <class name="ctf.jdo.tc0x.Race" access="shared" identity="id">
    <description>Table used for cache testing</description>
    <map-to table="tc0x_race" />
    <cache-type type="count-limited" capacity="30"/>
    <field name="id" type="integer">
      <sql name="id" type="integer" />
    </field>
    <field name="value1" type="integer">
      <sql name="value1" type="integer" />
    </field>
  </class>
-->

  <class name="ctf.jdo.tc0x.RaceCount" access="shared" identity="id">
    <description>Table used for cache testing</description>
    <cache-type type="count-limited" capacity="10"/>
    <map-to table="tc0x_race" />
    <field name="id" type="integer">
      <sql name="id" type="integer" />
    </field>
    <field name="value1" type="integer" required="true">
      <sql name="value1" type="integer" />
    </field>
  </class>

  <class name="ctf.jdo.tc0x.RaceTime" access="shared" identity="id">
    <description>Table used for cache testing</description>
    <cache-type type="time-limited" capacity="5"/>
    <map-to table="tc0x_race" />
    <field name="id" type="integer">
      <sql name="id" type="integer" />
    </field>
    <field name="value1" type="integer" required="true">
      <sql name="value1" type="integer" />
    </field>
  </class>

  <class name="ctf.jdo.tc0x.RaceUnlimited" access="shared" identity="id">
    <description>Table used for cache testing</description>
    <cache-type type="unlimited"/>
    <map-to table="tc0x_race" />
    <field name="id" type="integer">
      <sql name="id" type="integer" />
    </field>
    <field name="value1" type="integer" >
      <sql name="value1" type="integer" />
    </field>
  </class>

  <class name="ctf.jdo.tc0x.RaceNone" access="shared" identity="id">
    <description>Table used for cache testing</description>
    <cache-type type="none"/>
    <map-to table="tc0x_race" />
    <field name="id" type="integer">
      <sql name="id" type="integer" />
    </field>
    <field name="value1" type="integer">
      <sql name="value1" type="integer" />
    </field>
  </class>
</mapping>
