<?xml version="1.0"?>

<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
                         "http://castor.exolab.org/mapping.dtd">

<!-- This mapping file is generated by XDoclet. Please do not edit! -->

<mapping>

  <!-- =================================================================== -->
  <!--   Mapping for class test.ejb.jdo.Paycheck  -->
  <!-- =================================================================== -->

  <class name="test.ejb.jdo.Paycheck"
         identity="ref"
         access="shared"
         depends="test.ejb.jdo.Staff"
         auto-complete="false">         
    <map-to table="paycheck" />
    <cache-type type="count-limited" />

    <field name="ref"
           type="java.lang.String"
           get-method="getRef">
    </field>

    <field name="amount"
           type="double"
           get-method="getAmount">
    </field>

    <field name="date"
           type="java.util.Date"
           get-method="getDate">
    </field>

  </class>

  <!-- =================================================================== -->
  <!--   Mapping for class test.ejb.jdo.Transaction  -->
  <!-- =================================================================== -->

  <class name="test.ejb.jdo.Transaction"
         identity="reference"
         access="shared"
         auto-complete="false">         
    <map-to table="tx" />
    <cache-type type="count-limited" />

    <field name="reference"
           type="integer"
           get-method="getReference">
      <sql
           type="integer" />
      <bind-xml />
    </field>

    <field name="amount"
           type="double"
           get-method="getAmount">
      <sql
           type="float" />
      <bind-xml />
    </field>

    <field name="fromAccountId"
           type="integer"
           get-method="getFromAccountId">
      <sql
           type="integer" />
      <bind-xml />
    </field>

    <field name="toAccountId"
           type="integer"
           get-method="getToAccountId">
      <sql
           type="integer" />
      <bind-xml />
    </field>

    <field name="date"
           type="java.util.Date"
           get-method="getDate">
      <sql
           type="date" />
      <bind-xml />
    </field>

    <field name="staff"
           type="test.ejb.jdo.Staff"
           get-method="getStaff"
           collection="vector">
    </field>

  </class>

  <!-- =================================================================== -->
  <!--   Mapping for class test.ejb.jdo.Manager  -->
  <!-- =================================================================== -->

  <class name="test.ejb.jdo.Manager"
         identity="id"
         access="shared"
         extends="test.ejb.jdo.Staff"
         auto-complete="false">         
    <map-to table="staff"
            xml="manager" />
    <cache-type type="count-limited" />

    <field name="employees"
           type="test.ejb.jdo.Staff"
           get-method="getEmployees"
           collection="vector">
    </field>

  </class>

  <!-- =================================================================== -->
  <!--   Mapping for class test.ejb.jdo.Staff  -->
  <!-- =================================================================== -->

  <class name="test.ejb.jdo.Staff"
         identity="id"
         access="shared"
         auto-complete="false">         
    <map-to table="staff" />
    <cache-type type="count-limited" />

    <field name="id"
           type="integer"
           get-method="getId">
      <sql
           type="integer" />
      <bind-xml />
    </field>

    <field name="name"
           type="java.lang.String"
           get-method="getName">
      <sql
           type="varchar" />
      <bind-xml />
    </field>

    <field name="startDate"
           type="java.util.Date"
           get-method="getStartDate">
      <sql
           type="date" />
      <bind-xml />
    </field>

  </class>

  <!--
    Define your key-generator declaration in a file called key-generator.xml and place it in your merge directory.
   -->

</mapping>

