[hibernate-issues] [Hibernate-JIRA] Commented: (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:50:56 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28947 ] 

Philippe Mouawad commented on HHH-2970:
---------------------------------------

Sorry I made a mistake, problem does not occur for Postgres.

> 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