Skip to content

Commit 0d920bd

Browse files
committed
HHH-19908 make 'this' case-insensitive
1 parent bf4d46e commit 0d920bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/query/hql/internal/SqmPathRegistryImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ else if ( parentRegistered instanceof Join<?, ?> join ) {
240240
}
241241

242242
final boolean onlyOneFrom = sqmFromByPath.size() == 1;
243-
if ( onlyOneFrom && localAlias.equals( "this" ) ) {
244-
final SqmRoot<?> root = (SqmRoot<?>) sqmFromByPath.entrySet().iterator().next().getValue();
243+
if ( onlyOneFrom && localAlias.equalsIgnoreCase( "this" ) ) {
244+
final var root = (SqmRoot<?>) sqmFromByPath.entrySet().iterator().next().getValue();
245245
if ( root.getAlias() == null ) {
246246
//noinspection unchecked
247247
return (X) root;

0 commit comments

Comments
 (0)