HibernateFunctionContributor: Fix parameter types.
Change-Id: I960825eac14ece945c5b52e6889bfce6504b0821
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 @@
.setExactArgumentCount(3)
.setArgumentListSignature("(STRING searchTerms, STRING language, STRING queryText)")
.setArgumentRenderingMode(DEFAULT)
- .setParameterTypes(STRING, STRING, STRING)
+ .setParameterTypes(ANY, STRING, STRING)
.register();
}
}