Update hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java

This commit is contained in:
Christian Beikov 2022-06-20 10:57:31 +02:00
parent 828a1921a7
commit 835374328f
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class ColumnEntityAliases extends DefaultEntityAliases {
protected String[] getPropertyAliases(Loadable persister, int j) { protected String[] getPropertyAliases(Loadable persister, int j) {
String[] propertyColumnNames = persister.getPropertyColumnNames(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 new String[]{ persister.getPropertyNames()[j] };
} }
return propertyColumnNames; return propertyColumnNames;