[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1196?page=comments#action_17257 ]
Bill Schneider commented on XDT-1196: ------------------------------------- Wasn't able to get the patch to work , but I was able to hack something up with XDT templates alone. general idea: put modified xdt templates somewhere, and then do this <hibernatedoclet> <fileset ..> <hibernate version="2.1" template="../path/hibernate-mod.xdt"/> </fileset> </hibernatedoclet> <hibernatedoclet> <fileset ..> <hibernate version="2.1" havingClassTag="hibernate.subclass" template="../path/hibernate-subclass-mod.xdt"/> </fileset> </hibernatedoclet> etc. where hibernate-mod.xdt is hibernate.xdt with the merges for hibernate-subclass and -joined-subclass removed, and -subclass-mod.xdt is -subclass.xdt with XML boilerplate and <hibernate-mapping> element added, and forAllClasses removed. Will attach sample xdt's. joined subclass is an exercise for the reader. :-) > support having individual hbm.xml files for subclasses > ------------------------------------------------------ > > Key: XDT-1196 > URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1196 > Project: XDoclet > Type: Improvement > Components: Hibernate Module > Reporter: Bill Schneider > Assignee: xdoclet-devel (Use for new issues) > Attachments: hibernate-child.xdt, hibernate-class.xdt, subclass.patch > > Original Estimate: 6 hours > Remaining: 6 hours > > It would be nice if there were some way to configure XDoclet's Hibernate > module to create separate .hbm.xml files for subclasses, as is now permitted > by Hibernate. > Right now, if you have @hibernate.class in A.java and @hibernate.subclass in > B.java, you get a single A.hbm.xml file with a nested <subclass> element > inside A's <class> element. > Instead, I'd like to get a separate hbm.xml file for B (<hibernate-mapping> > <subclass name="B" extends="A" > ...) > My company has developed our own *.xdt templates to do exactly that, along > with some custom subtasks to point at them, to simplify build.xml. We'd like > to see this implemented inside the standrad solution, though, and would like > to get feedback on how to proceed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- 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-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel