Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.5
I have a problem with code generation. hbm2java task doesn't work correctly.
I use the following definition in build.xml file
Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="classpath"/>
<target name="codegen">
<hibernatetool destdir="${class.dir}">
<configuration propertyfile="${props.dir}/hibernate.properties">
<fileset dir="${hbm.dir}">
<include name="**/*.hbm.xml" />
</fileset>
</configuration>
<hbm2java />
</hibernatetool>
</target>
As result of executing this task I have error message:
SEVERE: Could not configure datastore from file: <some-mapping-file.hbm.xml>
org.hibernate.MappingException: class <some-class> not found while looking for property: name