<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jaws PUBLIC
          "-//JBoss//DTD JAWS 2.4//EN"
          "http://www.jboss.org/j2ee/dtd/jaws_2_4.dtd">
<jaws>
   <datasource>java:/newsDataSource</datasource>
   <type-mapping>Oracle8</type-mapping>

   <enterprise-beans>
        <entity>
            <ejb-name>demo.Story</ejb-name>
            <cmp-field>
                <field-name>id</field-name>
                <column-name>ID</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>author</field-name>
                <column-name>AUTHOR</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>subject</field-name>
                <column-name>SUBJECT</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>content</field-name>
                <column-name>CONTENT</column-name>
            </cmp-field>
            <finder>
                <name>findById</name>
                <query><![CDATA[where ID = {0}]]></query>
                <order></order>
            </finder>
            <finder>
                <name>findByAuthor</name>
                <query><![CDATA[where AUTHOR = {0}]]></query>
                <order></order>
            </finder>
            <table-name>STORY</table-name>
            <time-out>10</time-out>
        </entity>
    </enterprise-beans>
</jaws>