Hi all,
I just created a new project using Hibernate3 and added the latest Hibernate Tools to it. I followed the instruction on installing them and how to use the hbm2java subtask in Ant. When running my gode-gen ant task I always run into an Exception.
Exception:
SCHWERWIEGEND: Method needsEqualsHashCode threw exception for reference $pojo in template pojo/PojoEqualsHashcode.vm at [1,5]
20.11.2005 14:14:21 org.apache.velocity.tools.generic.log.CommonsLogLogSystem logVelocityMessage
SCHWERWIEGEND: Method get threw exception for reference $templates in template pojo/Pojo.vm at [17,1]
org.hibernate.tool.hbm2x.ExporterException: MethodInvocationException while processing template Pojo. Invocation of method 'get' in class org.hibernate.tool.hbm2x.TemplateHelper$Templates threw exception class org.hibernate.tool.hbm2x.ExporterException : MethodInvocationException while processing template pojo/PojoEqualsHashcode.vm. Invocation of method 'needsEqualsHashCode' in class org.hibernate.tool.hbm2x.pojo.EntityPOJOClass threw exception class java.lang.NoSuchMethodError : org.hibernate.mapping.Property.isNaturalIdentifier()Z
The rest of the stack trace is a little much to post. So, can anybody help me with that???
Thanks,
Kimba
|