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> | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936868#3936868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936868 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user