Thanks for the quick answer. I tried this with etc/hbm/pojo/Pojo.ftl, but get the following error:
Quote:
[hibernatetool] INFO: Hibernate Tools 3.2.0.beta8
[hibernatetool] An exception occurred while running exporter #2:generic exporter
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.tool.hbm2x.ExporterException: File pattern not set on class org.hibernate.tool.hbm2x.GenericExporter
I also ran it through strace and ant does not even try to access Pojo.ftl before this error shows up.
The ant target I'm using is:
Code:
<target name="hbm2java" description="generate Java code from hbm files">
<hibernatetool destdir="javasrc">
<classpath path="javasrc" />
<hbmtemplate templatepath="etc/hbm" />
<configuration configurationfile="javasrc/hibernate.cfg.xml" />
<hbm2java jdk5="true" />
</hibernatetool>
</target>
</nk>