<?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>
   <enterprise-beans>

      <entity>
         <ejb-name>AllTypes</ejb-name>
         <home>org.jboss.test.testbean2.interfaces.AllTypesHome</home>
         <remote>org.jboss.test.testbean2.interfaces.AllTypes</remote>
         <ejb-class>org.jboss.test.testbean2.bean.AllTypesBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.String</prim-key-class>
         <primkey-field>aString</primkey-field>

         <ejb-ref>
            <ejb-ref-name>ejb/stateful</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>org.jboss.test.testbean.interfaces.StatefulSessionHome</home>
            <remote>org.jboss.test.testbean.interfaces.StatefulSession</remote>
         </ejb-ref>

         <ejb-ref>
            <ejb-ref-name>ejb/stateless</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>org.jboss.test.testbean.interfaces.StatelessSessionHome</home>
            <remote>org.jboss.test.testbean.interfaces.StatelessSession</remote>
         </ejb-ref>

         <ejb-ref>
            <ejb-ref-name>ejb/entity</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <home>org.jboss.test.testbean.interfaces.EnterpriseEntityHome</home>
            <remote>org.jboss.test.testbean.interfaces.EnterpriseEntity</remote>
         </ejb-ref>

         <reentrant>False</reentrant>
         <cmp-version>1.x</cmp-version>
         <abstract-schema-name>alltypes</abstract-schema-name>

         <cmp-field><field-name>aBoolean</field-name></cmp-field>
         <cmp-field><field-name>aByte</field-name></cmp-field>
         <cmp-field><field-name>aShort</field-name></cmp-field>
         <cmp-field><field-name>anInt</field-name></cmp-field>
         <cmp-field><field-name>aLong</field-name></cmp-field>
         <cmp-field><field-name>aFloat</field-name></cmp-field>
         <cmp-field><field-name>aDouble</field-name></cmp-field>
         <!-- 
         <cmp-field><field-name>aChar</field-name></cmp-field>
         -->            
         <cmp-field><field-name>aString</field-name></cmp-field>
         <cmp-field><field-name>aDate</field-name></cmp-field>
         <cmp-field><field-name>aTimestamp</field-name></cmp-field>
         <cmp-field><field-name>anObject</field-name></cmp-field>
         <cmp-field><field-name>statefulSession</field-name></cmp-field>
         <cmp-field><field-name>statelessSession</field-name></cmp-field>
         <cmp-field><field-name>enterpriseEntity</field-name></cmp-field>
         <cmp-field><field-name>aList</field-name></cmp-field>
         <query>
            <query-method>
               <method-name>findByMinInt</method-name>
               <method-params>
                  <method-param>int</method-param>
               </method-params>
            </query-method>
            <ejb-ql/>
         </query>

         <query>
            <query-method>
               <method-name>findByIntAndDouble</method-name>
               <method-params>
                  <method-param>int</method-param>
                  <method-param>double</method-param>
               </method-params>
            </query-method>
            <ejb-ql/>
         </query>
      </entity>
   </enterprise-beans>

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

