Skip to content

Commit be70d49

Browse files
committed
HHH-14325 - Add Query hint for specifying "query spaces" for native queries
1 parent 37a8d22 commit be70d49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ protected boolean applyQuerySpaces(Object value) {
492492
}
493493

494494
if ( value instanceof Collection ) {
495-
// if ( querySpaces == null ) {
496-
// querySpaces = new ArrayList<>();
497-
// }
495+
if ( querySpaces == null ) {
496+
querySpaces = new ArrayList<>();
497+
}
498498
querySpaces.addAll( (Collection<String>) value );
499499
return true;
500500
}

0 commit comments

Comments
 (0)