diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/Table.java b/hibernate-core/src/main/java/org/hibernate/mapping/Table.java index 92bd8623ff..f90b6b7169 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/Table.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/Table.java @@ -856,9 +856,7 @@ public class Table implements RelationalModel, Serializable, Exportable { public boolean equals(Object other) { ForeignKeyKey fkk = (ForeignKeyKey) other; - return fkk.columns.equals( columns ) && - fkk.referencedClassName.equals( referencedClassName ) && fkk.referencedColumns - .equals( referencedColumns ); + return fkk.columns.equals( columns ) && fkk.referencedColumns.equals( referencedColumns ); } @Override