Hibernate version:
2.1.6
Full stack trace of any exception that occurs:
No public execute() in class net.sf.hibernate.tool.hbm2ddl.SchemaUpdate
Name and version of the database you are using:
PostgreSQL 8.0 beta2
Guys,
Trying to use ant and hbm2ddl to update the schema incrementally, just as it shows in the hibernate documenation and the "Hibernate in Action" book.
However, when I execute my task, I get the error message "No public execute() in class net.sf.hibernate.tool.hbm2ddl.SchemaUpdate". I've looked at the class with Eclipse's reverse eng. capabilities and the method appears to be there. Other classes from the tool package, like SchemaExport, work just fine.
Can anyone see what I'm doing wrong? Here's my build.xml excerpt:
<target name="updateschema">
<taskdef name="schemaupdate"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaUpdate"
classpathref="project.class.path"/>
<schemaupdate config="${class.root}/hibernate.cfg.xml" quiet="no">
<fileset dir="src">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaupdate>
</target>
Thanks!
|