ravalox wrote:
How can I simply run hbm2java in hibernate3?
Why do you want to use the hbm2java?To create pojos?
Then if you are using build.xml you can use something like the following taskdef:
Code:
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="classpath"/>
<target name="createPojos" depends="clean" >
<hibernatetool destdir="${srcDir}">
<configuration>
<fileset dir="${srcDir}">
<include name="**/*.hbm.xml"/>
</fileset>
</configuration>
<hbm2java jdk5="false"/>
</hibernatetool>
</target>