diff --git a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java index e80d248e48..25791e8d98 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java @@ -104,8 +104,7 @@ public final class IdentifierGeneratorHelper { private static boolean equal(String keyColumnName, String alias, Dialect dialect) { return alias.equals( keyColumnName ) - || StringHelper.isQuoted( keyColumnName, dialect ) - && alias.equals( StringHelper.unquote( keyColumnName, dialect ) ); + || alias.equals( StringHelper.unquote( keyColumnName, dialect ) ); } public static IntegralDataTypeHolder getIntegralDataTypeHolder(Class integralType) {