On Friday 16 January 2004 11:57, Aleksandr Shneyderman wrote: > I am trying to merge some non-XDoclet composite-id's of hibernate to my > hbm.xml files. > > Since hibernate does not have that capability I added a little merge point > in hibernate.xdt template right before the ids are generated. So that if I > have a composite-id of the form: > <composite-id> > <key-property name="blah1" /> > <key-property name="blah2" /> > </composite-id> > I can just insert it, where it has to be. > > The problem I have is that since, I provide the id thru merge point, I do > not need @hibernate.id tag in my Java source any more and it seems > hibernate module just does not like it. Upon generation I get an exception: > > [hiberdoclet] Caused by: xdoclet.XDocletException: Class > edu.columbia.law.gls.model.AppliedP > rogram misses ID property > [hiberdoclet] at > xdoclet.modules.hibernate.HibernateTagsHandler.hasCompositeId_Impl(Hibern > ateTagsHandler.java:482) > [hiberdoclet] at > xdoclet.modules.hibernate.HibernateTagsHandler.ifHasPrimitiveId(Hibernate > TagsHandler.java:153) > [hiberdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) [hiberdoclet] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java > > :39) > > [hiberdoclet] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI > mpl.java:25) > [hiberdoclet] at java.lang.reflect.Method.invoke(Method.java:324) > [hiberdoclet] at > xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:635) > [hiberdoclet] at > xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:561) > [hiberdoclet] at > xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:959 > ) > [hiberdoclet] at > xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:926) > [hiberdoclet] at > xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:466) > [hiberdoclet] at > xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347) > [hiberdoclet] at > xdoclet.template.TemplateEngine.start(TemplateEngine.java:414) > [hiberdoclet] at > xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560) > [hiberdoclet] at > xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:767) > > > > So, my question is how do I make it work? What else do I need to change? Is > there a setting that I can use to disable that checking for id existence?
-- Thanks, Alex. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
