[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2970) hbm2ddl does not respect constraint when generating DROP Statements (at least with DB2,)

Philippe Mouawad (JIRA) noreply at atlassian.com
Sun Nov 25 11:29:56 EST 2007


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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list