The problem that I am encountering is that no matter what I change into the mapping files, the hbm2ddl, update=true will not generate the update statements into the indicated SQL output file, nor export them into the DB.
The ANT target:
<target name="update-tables" description="Update tables">
<tstamp>
<format property="stamp" pattern="yyyy-MM-dd_hh-mm-ss" />
</tstamp>
<hibernatetool destdir="../sql">
<classpath>
<!-- a classpath is optional, but needed for exporters that require access to domain classes etc. -->
<path refid="master-classpath" />
</classpath>
<configuration configurationfile="src/hibernate-gen.cfg.xml" />
<!-- annotated class/packages are specified in the hibernate.cfg.xml -->
<hbm2ddl update="true" outputfilename="rf-update_${stamp}.sql" />
<!-- SchemaExport based on Annotations -->
</hibernatetool>
</target>
Hibernate version: 3.1.1 Tools version: HibernateTools-3.1.0.beta4
|