Well, despite all these mentioned below being true, the CMR relationship between my beans actually works :)
Christopher On Sat, Jan 05, 2002 at 03:17:02PM +0100, Jozsa Kristof wrote: > Hi, > > The XDoclet generated jbosscmp-jdbc.xml looks incorrect as I see. The > ejb-relationship-role-name should not be the same as I know. I've provided > these 2 tags in the two beans: > > @ejb:relation name="Manufacturer-Product" > role-name="manufacturer-has-products" > > @ejb:relation name="Manufacturer-Product" > role-name="product-belongsto-manufacturer" > > > And the generated jbosscmp-jdbc.xml's according part is: > -- > <relationships> > <ejb-relation> > <ejb-relation-name>Manufacturer-Product</ejb-relation-name> > > <!-- one to many --> > <foreign-key-mapping> > > <ejb-relationship-role> > > ><ejb-relationship-role-name>product-belongsto-manufacturer</ejb-relationship-role-name> > <fk-constraint>false</fk-constraint> <!-- there wont be a fk here --> > <foreign-key-fields /> > </ejb-relationship-role> > > <ejb-relationship-role> > > ><ejb-relationship-role-name>product-belongsto-manufacturer</ejb-relationship-role-name> > <fk-constraint>true</fk-constraint> > <foreign-key-fields> > <foreign-key-field> > <field-name>id</field-name> > <!-- here I should do something to generate property elements, but I have >nfi what they are for... --> > </foreign-key-field> > </foreign-key-fields> > </ejb-relationship-role> > > </foreign-key-mapping> > > </ejb-relation> > </relationships> > -- > > Also, the nfi-comment about property elements makes no sense for me. > > Christopher > -- > .Digital.Yearning.for.Networked.Assassination.and.Xenocide > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
