<?xml version="1.0"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
          "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB 1.1 RDBMS Persistence//EN"
          "http://www.bea.com/servers/wls600/dtd/weblogic-rdbms11-persistence-600.dtd">

<weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
        <ejb-name>demo.Story</ejb-name>
        <data-source-name>java:/newsDataSource</data-source-name>
        <table-name>STORY</table-name>
        <field-map>
            <cmp-field>id</cmp-field>
            <dbms-column>ID</dbms-column>
        </field-map>
        <field-map>
            <cmp-field>author</cmp-field>
            <dbms-column>AUTHOR</dbms-column>
        </field-map>
        <field-map>
            <cmp-field>subject</cmp-field>
            <dbms-column>SUBJECT</dbms-column>
        </field-map>
        <field-map>
            <cmp-field>content</cmp-field>
            <dbms-column>CONTENT</dbms-column>
        </field-map>
        <finder>
            <finder-name>findById</finder-name>
            <finder-param>long</finder-param>
            <finder-query><![CDATA[(= ID $0)]]></finder-query>
        </finder>
        <finder>
            <finder-name>findByAuthor</finder-name>
            <finder-param>java.lang.String</finder-param>
            <finder-query><![CDATA[(= AUTHOR $0)]]></finder-query>
        </finder>
        <enable-tuned-updates>true</enable-tuned-updates>
    </weblogic-rdbms-bean>
</weblogic-rdbms-jar>