summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2023-08-07 19:46:03 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2023-08-07 19:46:03 +0200
commit267f1fca29697f16e1908c3d8efd39837f7e08d8 (patch)
tree72e9e8dfca47823d454dcec19390944505de4486 /src/main
parentb9daaa2028986415ac70ef8a892a50eb9214dd66 (diff)
HibernateFunctionContributor: Fix parameter types.
Change-Id: I960825eac14ece945c5b52e6889bfce6504b0821
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();
}
}