mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-9597 : Criteria creates invalid column aliases
(cherry picked from commit 36cc2c836c5aed9b2f52500f9715f3de8fe40f5a)
This commit is contained in:
parent
b4f3a87684
commit
8806054ad8
@ -1108,7 +1108,11 @@ protected final String selectString(List associations)
|
||||
buf.append(", ").append(selectFragment);
|
||||
}
|
||||
if ( joinable.consumesEntityAlias() ) entityAliasCount++;
|
||||
if ( joinable.consumesCollectionAlias() && join.getJoinType()==JoinType.LEFT_OUTER_JOIN ) collectionAliasCount++;
|
||||
if ( joinable.consumesCollectionAlias() &&
|
||||
join.getJoinType()==JoinType.LEFT_OUTER_JOIN &&
|
||||
!join.hasRestriction() ) {
|
||||
collectionAliasCount++;
|
||||
}
|
||||
}
|
||||
return buf.toString();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user