Some more clarification about relations in the current CVS version: The cmr examples cover bidirectional 1:1, 1:n and m:n. See package.html for a brief description of the relationships.
I haven't started to look at unidirectional relations yet, and there are no examples for it either. It's a different story. I'll start looking at it when I'm more confident that bidirectional is working. <aslak/> ----- Original Message ----- From: Aslak Helles�y <[EMAIL PROTECTED]> Date: Tuesday, October 9, 2001 8:43 am Subject: RE: [Xdoclet-user] @ejb:relation in xdoclet 1.0.1 > Docs are fixed. It's a method tag as you've pointed out. You > should get the > latest version in CVS to get the latest bug fixes. Relations are > broken in > 1.0.1. They might not be 100% in the CVS (especially not for > unidirectional), but the bidirectional ones are getting there. > Give us a > week or so, and it should be ok. > > -And please send technical questions to the list, not to me > personally. > Cheers, Aslak > > -----Original Message----- > From: JD Fagan [mailto:[EMAIL PROTECTED]] > Sent: 9. oktober 2001 01:04 > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] @ejb:relation in xdoclet 1.0.1 > > > This message was sent from Geocrawler.com by "JD Fagan" > <[EMAIL PROTECTED]> > I'm still a little unclear on the ejb:relation > usage. Docs say its a class level tag, but > examples in distribution show it only at the > method level. > > Are there more up to date examples that > illustrate 1-1, 1-M, and M-N relationships > (either unidirectional or bi-directional, > preferably a bit of both)? > > JD > > --------------------------------------- > It should be ok in the latest CVS. Here is the > doc snippet: > > @ejb:relation > Define a relationship for an Entity bean. > Applicable only to EJB2.0 CMP2.x > beans. > > Parameter Usage > [name]: String Name of the relation. For > bidirectional relationships, > specify the same name on both sides. > [role-name]: String Name of a relationship role. > [cascade-delete]: String Indicates whether or not > the app server should > perform cascade deletes. If yes, specify cascade- > delete="yes" > [target-ejb]: String Name of the EJB on the other > side of the relation. > Should *only* occur if the relation is > unidirectional. > [target-role-name]: String Name of the > relationship role on the other side > of the relation. Should *only* occur if the > relation is unidirectional. > [target-cascade-delete]: String Indicates whether > or not the app server > should perform cascade deletes for the other side > of the relation. If yes, > specify cascade-delete="yes". Should *only* occur > if the relation is > unidirectional. > [target-multiple]: String If this EJB represents > a many-side of the other > side of the relation, specify target- > multiple="yes". Should *only* occur if > the relation is unidirectional. > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > On Behalf Of > [EMAIL PROTECTED] > Sent: 7. oktober 2001 18:34 > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] @ejb:relation in xdoclet > 1.0.1 > > > Can anyone explain how to use the @ejb:relation > tag since the new version > 1.0.1 does not seem to correspond with the > bundled documentation. > > regards > johan > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdocl > et-user > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdocl > et-user > > > > Geocrawler.com - The Knowledge Archive > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
