Hibernate version: 3.0.5 - Latest alpha tools
Hello, I successfully generate POJO classes from .hbm files with an build.xml ant script, so <hbm2java/> works perfectly.
BUT, I have a problem with the <hbm2dll/> - Using it produce the error :
The <hibernatetool> type doesn't support the nested "hbm2dll" element.
I Followed the doc from
http://www.hibernate.org/hib_docs/tools/ant/index.html and <hbm2dll> should be recognized...
What's wrong ?
Thank you
Here is the relevant part of the build file :
<path id="hibernatetools.classpath">
<fileset dir="D:\JavaDev/Databases/hibernate-tools-3.1.0.alpha5">
<include name="**/hibernate-tools.jar"/>
<include name="**/velocity-1.4.jar"/>
<include name="**/velocity-tools-generic-1.1.jar"/>
<include name="**/jtidy-r8-21122004.jar"/>
</fileset>
<fileset dir="${lib.dir}">
<include name="**/mysql-connector-java-3.1.10-bin.jar"/>
<include name="**/commons-logging-1.0.4.jar"/>
<include name="**/dom4j-1.6.jar"/>
<include name="**/commons-collections-2.1.1.jar"/>
<include name="**/hibernate3.jar"/>
</fileset>
</path>
<taskdef name = "hibernatetool"
classname = "org.hibernate.tool.ant.HibernateToolTask"
classpathref = "hibernatetools.classpath"
/>
<target name="hib_genjavaclass" depends="init">
<hibernatetool destdir="${src.dir}">
<configuration configurationfile="${webinf.dir}/hibernate.cfg.xml">
<fileset dir="${model.src.dir}">
<include name="**/*.hbm.xml" />
</fileset>
</configuration>
<hbm2java/>
<hbm2dll/>
</hibernatetool>