From be70d49df9c1ad5e72507cc9ed770bab689f4a50 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 16 Nov 2020 10:34:43 -0600 Subject: [PATCH] HHH-14325 - Add Query hint for specifying "query spaces" for native queries --- .../java/org/hibernate/query/internal/NativeQueryImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java b/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java index abe7ac5686..ec4dc2f87b 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java @@ -492,9 +492,9 @@ public class NativeQueryImpl extends AbstractProducedQuery implements Nati } if ( value instanceof Collection ) { -// if ( querySpaces == null ) { -// querySpaces = new ArrayList<>(); -// } + if ( querySpaces == null ) { + querySpaces = new ArrayList<>(); + } querySpaces.addAll( (Collection) value ); return true; }