0 Replies Latest reply on Apr 12, 2006 9:29 AM by urswag

    The correct entry for jbosscmp-jdbc.xml

    urswag

      What ist the correct entry in jbosscmp-jdbc.xml this ejb-jar.xml entry?
      The table addresslocals of the entity bean AddressEJB has primary key addressejb_upk.
      The table contactinfolocals of the entity bean ContactInfoEJB has primary key ContactInfoEJB_upk and foreing key address.
      A always get the error

      ole 'AddressEJB-BelongsTo-ContactInfoEJB' on Entity Bean 'ContactInfoEJB' : CMP field for key not found: field name='address'
      


      
       <ejb-relation>
      
       <ejb-relation-name>ContactInfoEJB-AddressEJB</ejb-relation-name>
       <ejb-relationship-role>
       <ejb-relationship-role-name>AddressEJB-BelongsTo-ContactInfoEJB</ejb-relationship-role-name>
       <multiplicity>One</multiplicity>
       <relationship-role-source>
       <ejb-name>ContactInfoEJB</ejb-name>
       </relationship-role-source>
       <cmr-field>
       <cmr-field-name>address</cmr-field-name>
       </cmr-field>
       </ejb-relationship-role>
       <ejb-relationship-role>
       <ejb-relationship-role-name>AddressEJB-HasNo-ContactInfoEJB</ejb-relationship-role-name>
       <multiplicity>One</multiplicity>
       <relationship-role-source>
       <ejb-name>AddressEJB</ejb-name>
       </relationship-role-source>
       </ejb-relationship-role>
      
       </ejb-relation>