<?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>net.sourceforge.junitejb.EJBTestRunnerHome</home>
         <remote>net.sourceforge.junitejb.EJBTestRunner</remote>
         <ejb-class>net.sourceforge.junitejb.EJBTestRunnerBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Bean</transaction-type>
      </session>

      <entity>
         <description>A - one-to-one bidirectional table</description>
         <ejb-name>A_OneToOne_Bi_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneBidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneBidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneBidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToOneBiTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-one bidirectional table</description>
         <ejb-name>B_OneToOne_Bi_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneBidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneBidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneBidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToOneBiTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-one bidirectional foreign-key</description>
         <ejb-name>A_OneToOne_Bi_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneBidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneBidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneBidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToOneBiFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-one bidirectional foreign-key</description>
         <ejb-name>B_OneToOne_Bi_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneBidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneBidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneBidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToOneBiFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-one unidirectional table</description>
         <ejb-name>A_OneToOne_Uni_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToOneUniTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-one unidirectional table</description>
         <ejb-name>B_OneToOne_Uni_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToOneUniTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-one unidirectional foreign-key</description>
         <ejb-name>A_OneToOne_Uni_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToOneUniFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-one unidirectional foreign-key</description>
         <ejb-name>B_OneToOne_Uni_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToOneUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToOneUniFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-many bidirectional table</description>
         <ejb-name>A_OneToMany_Bi_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyBidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyBidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyBidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToManyBiTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-many bidirectional table</description>
         <ejb-name>B_OneToMany_Bi_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyBidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyBidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyBidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToManyBiTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-many bidirectional foreign-key</description>
         <ejb-name>A_OneToMany_Bi_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyBidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyBidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyBidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToManyBiFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-many bidirectional foreign-key</description>
         <ejb-name>B_OneToMany_Bi_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyBidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyBidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyBidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToManyBiFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-many unidirectional table</description>
         <ejb-name>A_OneToMany_Uni_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToManyUniTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-many unidirectional table</description>
         <ejb-name>B_OneToMany_Uni_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToManyUniTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - one-to-many unidirectional foreign-key</description>
         <ejb-name>A_OneToMany_Uni_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AOneToManyUniFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - one-to-many unidirectional foreign-key</description>
         <ejb-name>B_OneToMany_Uni_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.oneToManyUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BOneToManyUniFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - many-to-one unidirectional table</description>
         <ejb-name>A_ManyToOne_Uni_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AManyToOneUniTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - many-to-one unidirectional table</description>
         <ejb-name>B_ManyToOne_Uni_Table_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BManyToOneUniTable</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - many-to-one unidirectional foreign-key</description>
         <ejb-name>A_ManyToOne_Uni_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AManyToOneUniFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - many-to-one unidirectional foreign-key</description>
         <ejb-name>B_ManyToOne_Uni_FK_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToOneUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BManyToOneUniFK</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - many-to-many bidirectional</description>
         <ejb-name>A_ManyToMany_Bi_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToManyBidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToManyBidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToManyBidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AManyToManyBi</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - many-to-many bidirectional</description>
         <ejb-name>B_ManyToMany_Bi_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToManyBidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToManyBidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToManyBidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BManyToManyBi</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>

      <entity>
         <description>A - many-to-many unidirectional</description>
         <ejb-name>A_ManyToMany_Uni_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToManyUnidirectional.AHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToManyUnidirectional.A</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToManyUnidirectional.ABean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>AManyToManyUni</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
      <entity>
         <description>B - many-to-many unidirectional</description>
         <ejb-name>B_ManyToMany_Uni_EJB</ejb-name>
         <local-home>org.jboss.test.cmp2.relationship.manyToManyUnidirectional.BHome</local-home>
         <local>org.jboss.test.cmp2.relationship.manyToManyUnidirectional.B</local>
         <ejb-class>org.jboss.test.cmp2.relationship.manyToManyUnidirectional.BBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>BManyToManyUni</abstract-schema-name>
         <cmp-field><field-name>id</field-name></cmp-field>
         <primkey-field>id</primkey-field>
      </entity>
   </enterprise-beans>

   <relationships>
      <ejb-relation>
         <ejb-relation-name>AB_OneToOne_Bi_Table</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-belongsto-B</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToOne_Bi_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>B_OneToOne_Bi_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_OneToOne_Bi_FK</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-belongsto-B</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToOne_Bi_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>B_OneToOne_Bi_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_OneToOne_Uni_Table</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-belongsto-B</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToOne_Uni_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>B_OneToOne_Uni_Table_EJB</ejb-name>
            </relationship-role-source>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_OneToOne_Uni_FK</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-belongsto-B</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToOne_Uni_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>B_OneToOne_Uni_FK_EJB</ejb-name>
            </relationship-role-source>
         </ejb-relationship-role>
      </ejb-relation>
      
      <ejb-relation>
         <ejb-relation-name>AB_OneToMany_Bi_Table</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToMany_Bi_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source>
               <ejb-name>B_OneToMany_Bi_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_OneToMany_Bi_FK</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToMany_Bi_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source>
               <ejb-name>B_OneToMany_Bi_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_OneToMany_Uni_Table</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToMany_Uni_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source>
               <ejb-name>B_OneToMany_Uni_Table_EJB</ejb-name>
            </relationship-role-source>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_OneToMany_Uni_FK</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_OneToMany_Uni_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source>
               <ejb-name>B_OneToMany_Uni_FK_EJB</ejb-name>
            </relationship-role-source>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_ManyToOne_Uni_Table</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_ManyToOne_Uni_Table_EJB</ejb-name>
            </relationship-role-source>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source>
               <ejb-name>B_ManyToOne_Uni_Table_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_ManyToOne_Uni_FK</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source>
               <ejb-name>A_ManyToOne_Uni_FK_EJB</ejb-name>
            </relationship-role-source>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-belongsto-A</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <cascade-delete/>
            <relationship-role-source>
               <ejb-name>B_ManyToOne_Uni_FK_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_ManyToMany_Bi</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source>
               <ejb-name>A_ManyToMany_Bi_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-has-As</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source>
               <ejb-name>B_ManyToMany_Bi_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

      <ejb-relation>
         <ejb-relation-name>AB_ManyToMany_Uni</ejb-relation-name>
         <ejb-relationship-role>
            <ejb-relationship-role-name>A-has-Bs</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source>
               <ejb-name>A_ManyToMany_Uni_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>b</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
         <ejb-relationship-role>
            <ejb-relationship-role-name>B-has-As</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source>
               <ejb-name>B_ManyToMany_Uni_EJB</ejb-name>
            </relationship-role-source>
            <cmr-field>
               <cmr-field-name>a</cmr-field-name>
               <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
         </ejb-relationship-role>
      </ejb-relation>

   </relationships>


    <assembly-descriptor>
        <container-transaction>
            <method>
                <ejb-name>A_OneToMany_Bi_Table_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_OneToMany_Bi_Table_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_OneToMany_Bi_FK_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_OneToMany_Bi_FK_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_OneToMany_Uni_Table_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_OneToMany_Uni_Table_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_OneToMany_Uni_FK_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_OneToMany_Uni_FK_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_ManyToOne_Uni_Table_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_ManyToOne_Uni_Table_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_ManyToOne_Uni_FK_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_ManyToOne_Uni_FK_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_ManyToMany_Bi_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_ManyToMany_Bi_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

        <container-transaction>
            <method>
                <ejb-name>A_ManyToMany_Uni_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
        <container-transaction>
            <method>
                <ejb-name>B_ManyToMany_Uni_EJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>

    </assembly-descriptor>
</ejb-jar>
