From 267f1fca29697f16e1908c3d8efd39837f7e08d8 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 7 Aug 2023 19:46:03 +0200 Subject: HibernateFunctionContributor: Fix parameter types. Change-Id: I960825eac14ece945c5b52e6889bfce6504b0821 --- .../mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java index 2bbb812..1a7074d 100644 --- a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java +++ b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java @@ -1,5 +1,6 @@ package eu.mulk.mulkcms2.common.hibernate; +import static org.hibernate.query.sqm.produce.function.FunctionParameterType.ANY; import static org.hibernate.query.sqm.produce.function.FunctionParameterType.STRING; import static org.hibernate.sql.ast.SqlAstNodeRenderingMode.DEFAULT; import static org.hibernate.type.StandardBasicTypes.BOOLEAN; @@ -22,7 +23,7 @@ public final class HibernateFunctionContributor implements FunctionContributor { .setExactArgumentCount(3) .setArgumentListSignature("(STRING searchTerms, STRING language, STRING queryText)") .setArgumentRenderingMode(DEFAULT) - .setParameterTypes(STRING, STRING, STRING) + .setParameterTypes(ANY, STRING, STRING) .register(); } } -- cgit v1.2.3