Thank you very much, Aslak. One more proof: RTFM. Sorry for being inattentive.
alex > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Tuesday, May 14, 2002 6:28 PM > To: [EMAIL PROTECTED] > Cc: 'Xdoclet-User (E-mail)' > Subject: Re: RE: [Xdoclet-user] Many-To-One unidirectional > > > * @ejb:relation name="addresses-city" > * role-name="address-has-city" > * target-role-name="city-has-addresses" > * target-ejb="City" > * target-multiple="yes" <===== LIKE THIS > > (It should be in the docs. At least the online ones) > http://xdoclet.sourceforge.net/ejbdoclet.html#relation > > HTH, > Aslak > > ----- Original Message ----- > From: "Alex Loubyansky" <[EMAIL PROTECTED]> > Date: Tuesday, May 14, 2002 5:14 pm > Subject: RE: [Xdoclet-user] Many-To-One unidirectional > > > I just can't understand what tags I have to set. > > Once more. AddressEJB represents the 'many'-side and CityEJB > > representsthe 'one'-side. I need to get unidirectional > > relationship from Address to > > CIty, i.e. there is AddressLocal.getCIty() but no > > CityLocal.getAddresses(). I set up tags this way in AddressEJB: > > > > * @ejb:relation name="addresses-city" > > * role-name="address-has-city" > > * target-role-name="city-has-addresses" > > * target-ejb="City" > > > > In ejb-jar.xml I get this, probably the right result according > > to the tags > > I've specified: > > <ejb-relation > > > <ejb-relation-name>addresses-city</ejb-relation-name> > > <!-- unidirectional --> > > <ejb-relationship-role > > > > > <ejb-relationship-role-name>address-has-city</ejb-relationship- > > role-name> > > <multiplicity>One</multiplicity> <==== but how to get > > Many here? > > <relationship-role-source > > > <ejb-name>Address</ejb-name> > > </relationship-role-source> > > <cmr-field > > > <cmr-field-name>city</cmr-field-name> > > </cmr-field> > > </ejb-relationship-role> > > <ejb-relationship-role > > > > > <ejb-relationship-role-name>city-has-addresses</ejb-relationship- > > role-name> > > <multiplicity>One</multiplicity> > > <relationship-role-source > > > <ejb-name>City</ejb-name> > > </relationship-role-source> > > </ejb-relationship-role> > > </ejb-relation> > > > > TIA > > > > alex > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, May 14, 2002 4:40 PM > > > To: [EMAIL PROTECTED] > > > Cc: Xdoclet-User (E-mail) > > > Subject: Re: [Xdoclet-user] Many-To-One unidirectional > > > > > > > > > Do you have any source code? > > > What _exactly_ is your problem? Is the generated code wrong, > > > or are you > > > wondering what tags to put in? > > > I assume you're using 1.1.2. > > > > > > Aslak > > > > > > ----- Original Message ----- > > > From: "Alex Loubyansky" <[EMAIL PROTECTED]> > > > Date: Tuesday, May 14, 2002 3:01 pm > > > Subject: [Xdoclet-user] Many-To-One unidirectional > > > > > > > I can't manage to get many-to-one indirectional relationship. > > Is it > > > > possible with XDoclet? > > > > > > > > For example relationship between AddressBean and CityBean. > > > > Address has one > > > > City in it. But the same City could be found in many Addresses. > > > > And the > > > > direction of the relationship is from Address to City, i.e. > > > > Address.getCity() but not CIty.getAddresses(). > > > > > > > > Is it possible? > > > > > > > > TIA, > > > > > > > > alex > > > > > > > > > > > > _______________________________________________________________ > > > > > > > > Have big pipes? SourceForge.net is looking for download mirrors. > > > > We supply > > > > the hardware. You get the recognition. Email Us: > > > > > > > [EMAIL PROTECTED] > > > __________ > > > > Xdoclet-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > > > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download > mirrors. We supply > the hardware. You get the recognition. Email Us: > [EMAIL PROTECTED] > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
