The key-field element in an <ejb-relationship/> define how primary keys of "this" 
entity are mapped to database columns.  In your jbosscmp-jdbc.xml, you have the 
key-field in the ejb-relationship-role where "this entity" is the customer, so you are 
defining the column (aid) in the address table that will hold a foreign key back to 
the customer.  (Of course, since the aid column is the primary key column for the 
address table, that won't work.)  You need to move your key-fields element into the 
other ejb-relationship-role.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830740#3830740

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830740


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to