Andreas Leitner wrote: > On Thu, Sep 19, 2002 at 09:04:21AM -0400, David Ward wrote: > >>Oh, yeah - one more part to this. The xdoclet tags I reference in the >>mail archive has one bug. On the getParent() method, the @ejb.relation >>tag needs to also have target-multiple="yes" to work with latest xdoclet >>cvs. >> >>David >> >>-- >> >>David Ward wrote: >> >>>Andreas, >>> >>>Don't think children and parent, or even just children. Only think >>>about parent, as that's all you really need! >>> >>>For more details, carefully read this URL: >>>http://sourceforge.net/mailarchive/message.php?msg_id=1873809 >>> >>>Searching the lists is always a good thing to try. >>> >>>Hope this helps, >>>David :) >> > > Hmm, sorry I should have found that myself. Thanks for the pointer! > > Btw, JBoss barfs on the finder: > > >> * @ejb:finder >> * signature="Collection findChildrenOfParent(java.lang.Integer >>pLocationKey)" >> * query="SELECT OBJECT(p) FROM Location o WHERE o.parent.key = ?1" > > > > has a bug too it would need to be: > > >> * @ejb:finder >> * signature="Collection findChildrenOfParent(java.lang.Integer >>pLocationKey)" >> * query="SELECT OBJECT(o) FROM Location o WHERE o.parent.key = ?1" > > > And the bean tag must have: > /** > > * @ejb:bean > > * name="Location" > schema="Location" > > At least that's needed under JBOSS 3.0.2. > > Now I am going to look if this can be made more object oriented. And try to replace >the java.lang.Integer with a PK object (; > > thanks for all, > Andreas
-- Andreas, Let me know what you end up doing, as I'm interested in better and better designs. Sorry about the typos - it wasn't a copy/paste so it was bound to be imperfect. David ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
