<?xml version="1.0"?>

<!DOCTYPE jaws PUBLIC
      "-//JBoss//DTD JAWS 3.0//EN"
      "http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd">

<jaws>
   <enterprise-beans>
      <entity>
         <ejb-name>Account</ejb-name>
         <table-name>Bank11Account</table-name>
         <create-table>true</create-table>
         <remove-table>true</remove-table>
         <tuned-updates>false</tuned-updates>
         <read-only>false</read-only>
         <time-out>300</time-out>
         <cmp-field>
            <field-name>id</field-name>
            <column-name>id</column-name>
            <jdbc-type>VARCHAR</jdbc-type>
            <sql-type>VARCHAR(256)</sql-type>
         </cmp-field>
         <cmp-field>
            <field-name>balance</field-name>
            <column-name>balance</column-name>
            <jdbc-type>REAL</jdbc-type>
            <sql-type>DOUBLE PRECISION</sql-type>
         </cmp-field>
         <finder>
            <name>findLargeAccounts</name>
            <query>balance &gt; {0}</query>
            <order>balance</order>
         </finder>
      </entity>
      <entity>
         <ejb-name>Customer</ejb-name>
         <table-name>Bank11Customer</table-name>
         <create-table>true</create-table>
         <remove-table>true</remove-table>
         <tuned-updates>false</tuned-updates>
         <read-only>true</read-only>
         <time-out>600</time-out>
         <cmp-field>
            <field-name>name</field-name>
            <column-name>name</column-name>
            <jdbc-type>VARCHAR</jdbc-type>
            <sql-type>VARCHAR(256)</sql-type>
         </cmp-field>
         <cmp-field>
            <field-name>id</field-name>
            <column-name>id</column-name>
            <jdbc-type>VARCHAR</jdbc-type>
            <sql-type>VARCHAR(256)</sql-type>
         </cmp-field>
      </entity>
   </enterprise-beans>
</jaws>
