Aggregation on _DataObjects_ works only for 1-1 relationship. For 1-n, you may want to look at _ValueObject_ (only in cvs and not fully tested). It is a kind of _DataObject_ but more sophiticated. We introduced there 1-n relationships (as well as multiple VO per entity bean with bean's attributes matching facility, aggregation/composition, ...) Have a look if you want. I'll appreciate feedback :)
Vincent --- [EMAIL PROTECTED] wrote: > Hi, > > I'm also interested in knowing more about this. From what I > understand is > you can put an ejb:aggregate task in the javadocs for a method: eg. > for > public abstract Collection getAddresses() in a person entity bean and > then I > would get a method in my person value object as follows: public void > setAddresses(Collection addresses) and public Collection > getAddresses(). > > If I include ejb:aggregate as such I get the following error: > > [ejbdoclet] Running XDoclet failed: > [ejbdoclet] <<The bean implementation class for interface > 'java.util.Collection' > not found!>> > [ejbdoclet] 1 error > [ejbdoclet] 100 warnings > [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, > method > star > t has thrown an exception java.lang.reflect.InvocationTargetException > > BUILD FAILED > > What is wrong here? > > Thanks :) > Bernie > > -----Urspr�ngliche Nachricht----- > Von: Steve Knight [mailto:[EMAIL PROTECTED]] > Gesendet: Samstag, 23. Februar 2002 19:15 > An: [EMAIL PROTECTED] > Betreff: [Xdoclet-user] Aggregate DataObjects > > > Hello, > Can someone please explain how to use XDoclet to make Aggregate > DataObjects. > I realize there is a ejb:aggregate tag, but I'm not sure how to use > it > properly. And what gets generated? > > Thanks, > > Steve > > > > __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
