[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2970?page=c...
]
Philippe Mouawad commented on HHH-2970:
---------------------------------------
I just read in DB2 documentation that Drop Table drops also referential constraints(All
referential constraints in which the table is a parent or dependent are dropped.) but I am
sure I encoutered a problem with this, I will recheck this week on my DB2 version and
recomment this issue.
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
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