Uploaded image for project: 'Hibernate ORM'
  1. HHH-8251

Generated drop script does not remove constraints

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.2.1
    • Fix Version/s: None
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      4.2.1, MySQL 5.5
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      I've just discovered that when using

      SchemaExport export = new SchemaExport(conf);
      export.drop(false, true);

      generates random foreign key constraint values to drop and does not use the constraints that are existing in the database. This means that I cannot drop the db anymore, so I had to move back to Hibernate 4.2.0.

      Test case:
      use random existing DB, try to execute drop script and you will receive sql errors while removing constraints.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: