From 835374328f1961e4edcf16c816b8f03d17f3bea9 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Mon, 20 Jun 2022 10:57:31 +0200 Subject: [PATCH] Update hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java --- .../src/main/java/org/hibernate/loader/ColumnEntityAliases.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java b/hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java index 69589933ff..65fbec96e0 100644 --- a/hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java +++ b/hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java @@ -37,7 +37,7 @@ public class ColumnEntityAliases extends DefaultEntityAliases { protected String[] getPropertyAliases(Loadable persister, int j) { String[] propertyColumnNames = persister.getPropertyColumnNames(j); - if ( Arrays.equals( propertyColumnNames, new String[] { null } ) ) { + if ( propertyColumnNames.length == 1 && propertyColumnNames[0] == null ) { return new String[]{ persister.getPropertyNames()[j] }; } return propertyColumnNames;