Skip to content

Commit b300b9d

Browse files
committed
HHH-17857 Use fromNameExact when determining actual table group
1 parent 8277ae8 commit b300b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,7 @@ private TableGroup getActualTableGroup(TableGroup lhsTableGroup, SqmPath<?> path
32543254
// then we want to return the PluralTableGroup instead
32553255
if ( lhsTableGroup instanceof PluralTableGroup
32563256
&& !( path instanceof SqmPluralPartJoin<?, ?> )
3257-
&& CollectionPart.Nature.fromName( path.getNavigablePath().getLocalName() ) == null ) {
3257+
&& CollectionPart.Nature.fromNameExact( path.getNavigablePath().getLocalName() ) == null ) {
32583258
final TableGroup elementTableGroup = ( (PluralTableGroup) lhsTableGroup ).getElementTableGroup();
32593259
// The element table group could be null for basic collections
32603260
if ( elementTableGroup != null ) {

0 commit comments

Comments
 (0)