<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar >

   <description><![CDATA[No Description.]]></description>
   <display-name>Generated by XDoclet</display-name>

   <enterprise-beans>

      <!-- Session Beans -->
         <session>
         <description>JUnit Session Bean Test Runner</description>
         <ejb-name>EJBTestRunnerEJB</ejb-name>
         <home>org.jboss.test.util.ejb.EJBTestRunnerHome</home>
         <remote>org.jboss.test.util.ejb.EJBTestRunner</remote>
         <ejb-class>org.jboss.test.util.ejb.EJBTestRunnerBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Bean</transaction-type>
      </session>

      <!-- Entity Beans -->
      <entity >
         <description><![CDATA[]]></description>

         <ejb-name>B</ejb-name>

         <local-home>org.jboss.test.cmp2.ejbselect.BLocalHome</local-home>
         <local>org.jboss.test.cmp2.ejbselect.BLocal</local>

         <ejb-class>org.jboss.test.cmp2.ejbselect.BCMP</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.String</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>B</abstract-schema-name>
         <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
         </cmp-field>
         <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
         </cmp-field>
         <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>bool</field-name>
         </cmp-field>
         <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>longField</field-name>
         </cmp-field>
         <primkey-field>id</primkey-field>

         <query>
            <description><![CDATA[]]></description>
            <query-method>
               <method-name>ejbSelectTrue</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM B AS b WHERE b.bool = TRUE]]></ejb-ql>
         </query>
         <query>
            <description><![CDATA[]]></description>
            <query-method>
               <method-name>ejbSelectFalse</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM B AS b WHERE b.bool = FALSE]]></ejb-ql>
         </query>
         <query>
            <description><![CDATA[Dynamic QL]]></description>
            <query-method>
               <method-name>ejbSelectDynamic</method-name>
               <method-params>
                  <method-param>java.lang.String</method-param>
                  <method-param>java.lang.Object[]</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
         </query>
	  <!-- Write a file named ejb-finders-BBean.xml if you want to define extra finders. -->
      </entity>

      <entity >
         <description><![CDATA[]]></description>

         <ejb-name>A</ejb-name>

         <local-home>org.jboss.test.cmp2.ejbselect.ALocalHome</local-home>
         <local>org.jboss.test.cmp2.ejbselect.ALocal</local>

         <ejb-class>org.jboss.test.cmp2.ejbselect.ACMP</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.String</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>A</abstract-schema-name>
         <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
         </cmp-field>
         <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>intField</field-name>
         </cmp-field>
         <primkey-field>id</primkey-field>

         <query>
            <description><![CDATA[]]></description>
            <query-method>
               <method-name>ejbSelectSomeBs</method-name>
               <method-params>
                  <method-param>org.jboss.test.cmp2.ejbselect.ALocal</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM B AS b WHERE b.a = ?1]]></ejb-ql>
         </query>
         <query>
            <description><![CDATA[]]></description>
            <query-method>
               <method-name>ejbSelectAWithBs</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT DISTINCT OBJECT(a) FROM A AS a WHERE a.bs IS NOT EMPTY]]></ejb-ql>
         </query>
         <query>
            <description><![CDATA[Declared SQL]]></description>
            <query-method>
               <method-name>ejbSelectSomeBsDeclaredSQL</method-name>
               <method-params>
                  <method-param>org.jboss.test.cmp2.ejbselect.ALocal</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
         </query>
         <query>
            <description><![CDATA[NOTE: -1234 does not exist]]></description>
            <query-method>
               <method-name>ejbSelectNullSum</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT SUM(a.intField) FROM A AS a WHERE a.intField = -1234]]></ejb-ql>
         </query>
	  <!-- Write a file named ejb-finders-ABean.xml if you want to define extra finders. -->
      </entity>

     <!--
       To add entity beans that you have deployment descriptor info for, add
       a file to your XDoclet merge directory called entity-beans.xml that contains
       the <entity></entity> markup for those beans.
     -->

      <!-- Message Driven Beans -->
     <!--
       To add message driven beans that you have deployment descriptor info for, add
       a file to your XDoclet merge directory called message-driven-beans.xml that contains
       the <message-driven></message-driven> markup for those beans.
     -->

   </enterprise-beans>

   <!-- Relationships -->
   <relationships >
      <ejb-relation >
         <ejb-relation-name>A-B</ejb-relation-name>

         <ejb-relationship-role >
            <ejb-relationship-role-name>B-has-an-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source >
               <ejb-name>B</ejb-name>
            </relationship-role-source>
            <cmr-field >
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>

         <ejb-relationship-role >
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source >
               <ejb-name>A</ejb-name>
            </relationship-role-source>
            <cmr-field >
               <cmr-field-name>bs</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>

      </ejb-relation>
   </relationships>

   <!-- Assembly Descriptor -->
   <assembly-descriptor >
     <!--
       To add additional assembly descriptor info here, add a file to your
       XDoclet merge directory called assembly-descriptor.xml that contains
       the <assembly-descriptor></assembly-descriptor> markup.
     -->

   <!-- finder permissions -->

   <!-- finder permissions -->

   <!-- transactions -->

   <!-- finder transactions -->
   </assembly-descriptor>

</ejb-jar>
