From c444d5f9e509ac58fa602c0a2993e69f181c7d2f 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 abe7ac5686dc..ec4dc2f87b36 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 @@ protected boolean applyQuerySpaces(Object value) { } if ( value instanceof Collection ) { -// if ( querySpaces == null ) { -// querySpaces = new ArrayList<>(); -// } + if ( querySpaces == null ) { + querySpaces = new ArrayList<>(); + } querySpaces.addAll( (Collection) value ); return true; }