[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-592?page=co...
]
Sukirtha Joseph commented on HBX-592:
-------------------------------------
Even I face the same issue. I do not see any updates to the schema, nor do i see DDLs
generated and stored to the file.
hbm2ddl update=true not working
-------------------------------
Key: HBX-592
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-592
Project: Hibernate Tools
Issue Type: Bug
Affects Versions: 3.1.beta5
Reporter: Dorel Vaida
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira