diff --git a/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java index a241d67444..019d73f388 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java @@ -417,18 +417,6 @@ public class MetadataImpl implements MetadataImplementor, Serializable { primaryKey.reorderColumns( primaryKeyColumns ); } } - for ( UniqueKey uniqueKey : table.getUniqueKeys().values() ) { - if ( uniqueKey.getColumns().size() > 1 ) { - final List uniqueKeyColumns = columnOrderingStrategy.orderConstraintColumns( - uniqueKey, - this - ); - if ( uniqueKeyColumns != null ) { - uniqueKey.getColumns().clear(); - uniqueKey.getColumns().addAll( uniqueKeyColumns ); - } - } - } for ( ForeignKey foreignKey : table.getForeignKeys().values() ) { final List columns = foreignKey.getColumns(); if ( columns.size() > 1 ) {