How to use postgres ltree with blaze persistence #1678
-
Is it possible to write postres ltree queries with blaze persistence? I am having trouble transforming this query to criteria API : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, it is possible, but you'll need to register a custom function that renders |
Beta Was this translation helpful? Give feedback.
Yes, it is possible, but you'll need to register a custom function that renders
{0} @> {1}
. How to register custom functions can be read in the documentation. You can also use Hibernates methods to register custom functions. This obviously assumes you have already successfully mapped your attribute to theltree
datatype, which might require the introduction of a custom type as well.