Hibernate version: 3.0.5
Hibernate Tools version: 3.1 alpha 5
Full stack trace of any exception that occurs:
java.lang.NoSuchMethodError: org.hibernate.tool.hbm2ddl.SchemaExport.setFormat(Z)Lorg/hibernate/tool/hbm2ddl/SchemaExport;
Hi,
I have a task in my build.xml which looks like this:
Code:
<target name="generate">
<hibernatetool destdir="bin">
<configuration configurationfile="src/hibernate.cfg.xml" />
<hbm2java />
<hbm2ddl drop="false" outputfilename="${ant.project.name}.sql" />
</hibernatetool>
</target>
The hbm2java works perfectly (after downloading the velocity libs), but hbm2ddl fails with the exception noted above.
I notice that the Hbm2DDLGeneratorTask class imports org.hibernate.tool.hbm2ddl.SchemaExport and org.hibernate.tool.hbm2ddl.SchemaUpdate, neither of which exist in hibernate-tools.jar.
Should this be working? Are there changes I can make to get this working?
Thanks,
Phil