From e3498d033b36074e1230513b1d9cf00c1dea12ed Mon Sep 17 00:00:00 2001 From: Szymon Tarnowski <33316705+starnowski@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:54:10 +0100 Subject: [PATCH] #92 - Fixed interpretation of HQL statements --- .../posjsonhelper/hibernate6/AbstractJsonBExtractPath.java | 1 - .../descriptor/AbstractJsonBExtractPathDescriptor.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/AbstractJsonBExtractPath.java b/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/AbstractJsonBExtractPath.java index 327186f6..906a8d4b 100644 --- a/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/AbstractJsonBExtractPath.java +++ b/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/AbstractJsonBExtractPath.java @@ -25,7 +25,6 @@ import org.hibernate.query.criteria.JpaExpression; import org.hibernate.query.sqm.NodeBuilder; import org.hibernate.query.sqm.function.FunctionRenderer; -import org.hibernate.query.sqm.function.FunctionRenderingSupport; import org.hibernate.query.sqm.function.SelfRenderingSqmFunction; import org.hibernate.query.sqm.produce.function.StandardFunctionReturnTypeResolvers; import org.hibernate.query.sqm.tree.SqmTypedNode; diff --git a/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/descriptor/AbstractJsonBExtractPathDescriptor.java b/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/descriptor/AbstractJsonBExtractPathDescriptor.java index fc3786c2..f9dea7df 100644 --- a/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/descriptor/AbstractJsonBExtractPathDescriptor.java +++ b/hibernate6/src/main/java/com/github/starnowski/posjsonhelper/hibernate6/descriptor/AbstractJsonBExtractPathDescriptor.java @@ -48,7 +48,7 @@ public AbstractJsonBExtractPathDescriptor(String functionName) { abstract protected T generateAbstractJsonBExtractPathImpl(Path referencedPathSource, List> pathArguments, NodeBuilder nodeBuilder); - protected SelfRenderingSqmFunction generateSqmFunctionExpression(List> arguments, ReturnableType impliedResultType, QueryEngine queryEngine, TypeConfiguration typeConfiguration) { + protected SelfRenderingSqmFunction generateSqmFunctionExpression(List> arguments, ReturnableType impliedResultType, QueryEngine queryEngine) { List> pathArguments = new ArrayList<>(); for (int i = 1; i < arguments.size(); i++) { pathArguments.add(arguments.get(i));