Update hibernate-core/src/main/java/org/hibernate/loader/ColumnEntityAliases.java
This commit is contained in:
parent
828a1921a7
commit
835374328f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue