-->
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.  [ 1 post ] 
Author Message
 Post subject: hbm2dao - not a really big problem
PostPosted: Fri Jun 08, 2007 6:00 am 
Newbie

Joined: Wed Nov 08, 2006 11:54 am
Posts: 4
Hello

I would like to generate dao classes in different package from classes and mappings package. But i cannot force tool to do that for me. Attribute destdir for hbm2dao doesn't help. Is there a way to do that?
Part of my ant file:


Code:
<target name="generate-mappings-classes">
      <hibernatetool destdir="${dest-dir}" >
         <jdbcconfiguration configurationfile="resource/ant/hibernate.cfg.xml" revengfile="resource/ant/hibernate.reveng.xml" packagename="hibernate.classes" />
         <hbm2hbmxml />
         <hbm2java />
         <!-- hbm2dao /-->
      </hibernatetool>
   </target>
   
   <target name="generate-daos">
      <hibernatetool destdir="${dest-dir}" >
         <configuration>
            <fileset dir="${dest-dir}">
               <include name="**/*.hbm.xml" />
            </fileset>
         </configuration>
         <hbm2dao  />
      </hibernatetool>
   </target>


vitor_b


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

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.