-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Error when use <hbmtemplate />
PostPosted: Mon Dec 19, 2005 7:23 am 
Newbie

Joined: Fri Oct 17, 2003 10:56 pm
Posts: 11
i copy all vm file from hibernate-tools.jar to src/
and set the ant build.xml:
Code:
      <hibernatetool destdir="src">
   
         <configuration >
            <fileset dir="src" id="id">
               <include name="**/*.hbm.xml"/>
            </fileset>
         </configuration>
      
         <hbmtemplate template="src/Pojo.vm"  filepattern="{package-name}/{class-name}.java"/>
      
         
      </hibernatetool>

show the error:


Code:
build.xml:68: org.hibernate.tool.hbm2x.ExporterException: MethodInvocationException while processing template src/Pojo.vm. Invocation of method 'get' in  class org.hibernate.tool.hbm2x.TemplateHelper$Templates threw exception class org.hibernate.tool.hbm2x.ExporterException : MethodInvocationException while processing template PojoFields.vm. Invocation of method 'importType' in  class org.hibernate.tool.hbm2x.pojo.EntityPOJOClass threw exception class java.lang.NullPointerException : null


but i replace the <hbmtemplate.. with <hbm2java/> , the code generated.
what's the problem? thx


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 6:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it in jira

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.