"[EMAIL PROTECTED]" wrote : Hi guys ! | | I had this problem. It 's that you must understand the way to think when you describe your relations. | | Here is something that will help you : | | ================================================= | <!-- Company-Division --> | <ejb-relation> | <ejb-relation-name>Company-Division</ejb-relation-name> | <foreign-key-mapping/> | <ejb-relationship-role> | <ejb-relationship-role-name>Company-is-in-Division</ejb-relationship-role-name> | <key-fields/> | | </ejb-relationship-role> | | <ejb-relationship-role> | <ejb-relationship-role-name>Division-has-Companies</ejb-relationship-role-name> | <key-fields> | <key-field> | <field-name>id</field-name> | <column-name>division_id</column-name> | </key-field> | </key-fields> | </ejb-relationship-role> | </ejb-relation> | ================================================ | | You describe the field name of the EJB from the ONE side of the relation that correspond to the column foreign key of the table in the MANY side of the relation. | | Hope this help. ;o) | | Noel |
This is not working for me because i have a composite primary key in both sides. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881580#3881580 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881580 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
