summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java3
1 files changed, 2 insertions, 1 deletions
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();
}
}