Heiko, thanks for your reply. In that case I must be misunderstanding something.
I have a CustomerProfieBean in which the code you quoted below resides. I want to create an m-n relationship with a ProfileBean and a CustomerBean. In the book "Mastering EJB" it is recommended to create a third EJB with two 1-n relationships to accomodate this. In my case it is the CustomerProfileBean. My CustomerProfileBean holds the foreign key "profileIdFk" and I want it to relate to the field "id" in my ProfileBean. The same goes for the customer relation (i.e. CustomerProfileBean.customerIdFk -> CustomerBean.id). Should my "@jboss.relation" thus display something else? I.e. perhaps the field of the Profile rather than that of the CustomerProfile. I would really appreciate your help once again to clarify what I�m doing wrong. Thanks very much. Michael ----- Original Message ----- From: "Rupp,Heiko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 10:53 AM Subject: RE: [Xdoclet-user] Need help with relationship error.... > Hi, > > > Could someone please tell me why jboss is looking for the > > field profileIdFk > > > * @jboss.relation > > * fk-column="profile_id_fk" > > * related-pk-field="profileIdFk" > > Because you specified it here. > > related-pk-field is the CMP-field in the 1-end of the relation. > > Heiko > -- > Bancotec GmbH EMail: [EMAIL PROTECTED] > Calwer Str. 33 Telefon: +49 711 222 992 900 > D-70173 Stuttgart Telefax: +49 711 222 992 999 > Ein Unternehmen der Cellent AG http://www.cellent.de/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
