1 Reply Latest reply on Jul 2, 2003 5:43 PM by govindadasa

    Does CMP create relationship column?

    govindadasa

      Hi All,
      My ejb-jar.xml is as follows:

      <ejb-relation>


      <ejb-relation-name>AccountItem-Amortization</ejb-relation-name>
      <ejb-relationship-role>
      <ejb-relationship-role-name>AccountItem-Has-Amortization</ejb-relationship-role-name>
      One
      <relationship-role-source>
      <ejb-name>AccountItem</ejb-name>
      </relationship-role-source>
      <cmr-field>
      <cmr-field-name>Amortization</cmr-field-name>
      </cmr-field>
      </ejb-relationship-role>
      <ejb-relationship-role>
      <ejb-relationship-role-name>Amortization-linksTo-AccountItem</ejb-relationship-role-name>
      One
      <relationship-role-source>
      <ejb-name>Amortization</ejb-name>
      </relationship-role-source>
      </ejb-relationship-role>
      </ejb-relation>

      AccountItem refers to Amortization. But Amortization doesn't refer to AccountItem. I have defined relationship as above. I didn't define anything in jbosscmp-jdbc.xml. The CMP container creates link from Amortization to AccountItem in Amortization table as AccountItem-Amortization., which I dont want. Is there any way I can avoid this?

      Any input is apprecaited!

      Thanks
      Bhaskar