[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2970?page=c...
]
Philippe Mouawad commented on HHH-2970:
---------------------------------------
I made a mistake.
No bug, checked again (had no time to do until today) with a cleanly generated script.
Sorry.
Philippe.
hbm2ddl does not respect constraint when generating DROP Statements
(at least with DB2,)
----------------------------------------------------------------------------------------
Key: HHH-2970
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2970
Project: Hibernate3
Issue Type: Bug
Affects Versions: 3.2.5
Environment: Hibernate 3.2.5, DB2 , Postgres
Reporter: Philippe Mouawad
Assignee: Diego Pires Plentz
I use hbm2ddl to generate the Schema of my Database.
Hibernate generates Drop Table statements using alphabetic order ignoring Constraints
between tables.
It works fine with Oracle thanks to "cascade constraints" statements but fails
with at least Postgres and DB2.
Would be great if constraints were dropped before dropping tables.
Thanks.
Philippe.
--
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