I am using postgresql
with jpa
in playframework 2.2
.
I am trying to use like with in
in my JPQL
by using similar to
something like this thread.
select * from table where lower(value) similar to '%(foo|bar|baz)%';
I have tried similar to
and ~*
in my JPQL but both dint work.
On using similar to
it gives
IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: similar near line 1
Is there any way I can use similar to
or ~*
like functionality apart from using like
in JPQL
?
Thanks