<?xml version="1.0"?>

<!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>
   <enterprise-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>
         <ejb-name>SimpleEJB</ejb-name>
         <local-home>org.jboss.test.cmp2.simple.SimpleHome</local-home>
         <local>org.jboss.test.cmp2.simple.Simple</local>
         <ejb-class>org.jboss.test.cmp2.simple.SimpleBean</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>simple</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <cmp-field><field-name>booleanPrimitive</field-name></cmp-field>
         <cmp-field><field-name>booleanObject</field-name></cmp-field>
         <cmp-field><field-name>bytePrimitive</field-name></cmp-field>
         <cmp-field><field-name>byteObject</field-name></cmp-field>
         <cmp-field><field-name>shortPrimitive</field-name></cmp-field>
         <cmp-field><field-name>shortObject</field-name></cmp-field>
         <cmp-field><field-name>integerPrimitive</field-name></cmp-field>
         <cmp-field><field-name>integerObject</field-name></cmp-field>
         <cmp-field><field-name>longPrimitive</field-name></cmp-field>
         <cmp-field><field-name>longObject</field-name></cmp-field>
         <cmp-field><field-name>floatPrimitive</field-name></cmp-field>
         <cmp-field><field-name>floatObject</field-name></cmp-field>
         <cmp-field><field-name>doublePrimitive</field-name></cmp-field>
         <cmp-field><field-name>doubleObject</field-name></cmp-field>
         <cmp-field><field-name>stringValue</field-name></cmp-field>
         <cmp-field><field-name>utilDateValue</field-name></cmp-field>
         <cmp-field><field-name>sqlDateValue</field-name></cmp-field>
         <cmp-field><field-name>timeValue</field-name></cmp-field>
         <cmp-field><field-name>timestampValue</field-name></cmp-field>
         <cmp-field><field-name>bigDecimalValue</field-name></cmp-field>
         <cmp-field><field-name>byteArrayValue</field-name></cmp-field>
         <cmp-field><field-name>objectValue</field-name></cmp-field>
         <cmp-field><field-name>valueClass</field-name></cmp-field>
         <cmp-field><field-name>hashtable</field-name></cmp-field>
         <primkey-field>id</primkey-field>
         <query>
            <query-method>
               <method-name>findWithByteArray</method-name>
               <method-params>
                  <method-param>byte[]</method-param>
               </method-params>
            </query-method>
            <ejb-ql/>
         </query>
         <query>
            <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/>
         </query>
         <query>
            <query-method>
               <method-name>ejbSelectValueClass</method-name>
               <method-params/>
            </query-method>
            <ejb-ql>
               SELECT s.valueClass
               FROM simple s
            </ejb-ql>
         </query>
      </entity>

      <entity>
         <ejb-name>SimpleEJBWithOptionA</ejb-name>
         <local-home>org.jboss.test.cmp2.simple.SimpleHome</local-home>
         <local>org.jboss.test.cmp2.simple.Simple</local>
         <ejb-class>org.jboss.test.cmp2.simple.SimpleBean</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>simpleA</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <cmp-field><field-name>booleanPrimitive</field-name></cmp-field>
         <cmp-field><field-name>booleanObject</field-name></cmp-field>
         <cmp-field><field-name>bytePrimitive</field-name></cmp-field>
         <cmp-field><field-name>byteObject</field-name></cmp-field>
         <cmp-field><field-name>shortPrimitive</field-name></cmp-field>
         <cmp-field><field-name>shortObject</field-name></cmp-field>
         <cmp-field><field-name>integerPrimitive</field-name></cmp-field>
         <cmp-field><field-name>integerObject</field-name></cmp-field>
         <cmp-field><field-name>longPrimitive</field-name></cmp-field>
         <cmp-field><field-name>longObject</field-name></cmp-field>
         <cmp-field><field-name>floatPrimitive</field-name></cmp-field>
         <cmp-field><field-name>floatObject</field-name></cmp-field>
         <cmp-field><field-name>doublePrimitive</field-name></cmp-field>
         <cmp-field><field-name>doubleObject</field-name></cmp-field>
         <cmp-field><field-name>stringValue</field-name></cmp-field>
         <cmp-field><field-name>utilDateValue</field-name></cmp-field>
         <cmp-field><field-name>sqlDateValue</field-name></cmp-field>
         <cmp-field><field-name>timeValue</field-name></cmp-field>
         <cmp-field><field-name>timestampValue</field-name></cmp-field>
         <cmp-field><field-name>bigDecimalValue</field-name></cmp-field>
         <cmp-field><field-name>byteArrayValue</field-name></cmp-field>
         <cmp-field><field-name>objectValue</field-name></cmp-field>
         <cmp-field><field-name>valueClass</field-name></cmp-field>
         <cmp-field><field-name>hashtable</field-name></cmp-field>
         <primkey-field>id</primkey-field>
         <query>
            <query-method>
               <method-name>findWithByteArray</method-name>
               <method-params>
                  <method-param>byte[]</method-param>
               </method-params>
            </query-method>
            <ejb-ql/>
         </query>
         <query>
            <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/>
         </query>
         <query>
            <query-method>
               <method-name>ejbSelectValueClass</method-name>
               <method-params/>
            </query-method>
            <ejb-ql>
               SELECT s.valueClass
               FROM simple s
            </ejb-ql>
         </query>
      </entity>
   </enterprise-beans>

   <assembly-descriptor>
      <container-transaction>
         <method>
            <ejb-name>SimpleEJB</ejb-name>
            <method-name>*</method-name>
         </method>
         <method>
            <ejb-name>SimpleEJBWithOptionA</ejb-name>
            <method-name>*</method-name>
         </method>
         <trans-attribute>Required</trans-attribute>
      </container-transaction>
   </assembly-descriptor>
</ejb-jar>


