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