Hi, Julian. It is a good news. You can post your changes to maillist or better post patch to JIRA (We also could track all changes)
Thanks for your contribution. I also think that your improvement will be helpful for other developers who uses xdoclet2. Thanks again. On 8/17/05, Julian Price <[EMAIL PROTECTED]> wrote: > Anatol, > Referring back to a post on the xdoclet user mailing group, I had the same > problems with the join tag, in that the subclass's properties weren't > appearing within the subclass's join tag and the join key was not being > generated (i.e. it was generated as an empty <key/> tag). > > Rather than waiting for a fix, I decided to fix/enhance Xdoclet2 myself: > > What I did first was add a new @hibernate property called hibernate.join-key > (this property was referred to in the Join.jelly file, but didn't have an > entry in the TagLibrary class so it wasn't recognised by the parser). > Secondly, I modified the Subclass.jelly and Join.jelly files to > > a. process <property> tags within the join > b. if the subclass contains a <join>, then do not process the <property> > tags for that subclass (but do for it's subclasses) > > The files I've changed are: > org/xdoclet/plugin/hibernate/Join.jelly > org/xdoclet/plugin/hibernate/Subclass.jelly > org/xdoclet/plugin/hibernate/qtags/TagLibrary.java > > I've also created the following 2 new classes: > org/xdoclet/plugin/hibernate/HibernateJoinKeyTag.java > org/xdoclet/plugin/hibernate/HibernateJoinKeyTagImpl.java > > > I've tested the fix by comparing my handcrafted Hibernate mapping file > against the file generated by my modified Xdoclet2 and they are exactly the > same. > > > Would you like me to send this fix to you as I'm sure a lot of other people > would like to generate <subclass> with <join> mapping files. > > Julian > -- anatol ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ xdoclet-plugins-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
