Hibernate version: 3.0
Hibernate tools version: 3.0a4
I am using hibernate tools from ant to generate java from my hbm files. However, when I add the following to my mapping file:
Code:
<property name="foo" not-null="true">
<column name="foo" sql-type="longblob"/>
</property>
I get an exception (below) and code is not generated. If I comment out that property, no exceptions and code is generated. I believe this bit is valid (at least according to the DTD). Can someone point out what dumb thing I am doing? Thanks!
---
Code:
Caused by: org.hibernate.MappingException: class com.signacert.webservice.ifs.SubmissionLog not found while looking for property: foo at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:81)
at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:275)
at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1841)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1827)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1728)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:318)
.
.
.
My ant task:
Code:
<target name="codegen">
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="lib.codegen"/>
<hibernatetool destdir="src/">
<configuration configurationfile="res/hibernate.cfg.xml">
<fileset dir="${dir.src}">
<include name="**/*.hbm.xml"/>
</fileset>
</configuration>
<hbm2java/>
</hibernatetool>
</target>