Natural IDs generating duplicate UK_* index

Description

my application set hibernate.hbm2ddl.auto=update,hibernate will create UK_* everytime when starting application.
I think hibernate must check if index exists before create a new one,index name should not generate by random,I suggest use md5(column_name),so everytime the index name will be the same,so you can use create index if not exists.

Activity

Yanming Zhou (quaff@github)April 27, 2013 at 12:34 AM

DROP_RECREATE doesn't works because name is random,so it will create a new unique index everytime and never drop the exists one,the point is use a fixed index name rather than a random name,4.2.1 break compatibility with previous version,please NOTE in release notes,thanks!

Brett MeyerApril 26, 2013 at 7:53 PM

In the future, please read release notes and check for existing tickets – thanks!

Yanming Zhou (quaff@github)April 26, 2013 at 9:33 AM

hibernate4.1.12 works fine.

Rejected

Details

Assignee

Reporter

Components

Affects versions

Priority

Created April 26, 2013 at 8:04 AM
Updated April 27, 2013 at 12:34 AM
Resolved April 26, 2013 at 7:53 PM

Flag notifications