Replies: 1 comment
-
This questions seems very similar to your other one for which I just added an answer. If you want to use a var cb = criteriaBuilderFactory.create(em, Address.class);
var criteria = cb
.page(0, 10)
.whereExpression("nameEn like 'foo'"); or var cb = criteriaBuilderFactory.create(em, Address.class);
var criteria = cb
.page(0, 10)
.where("nameEn").like().value("%foo%").noEscape(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out how to use regex supported by Postgres. I want to have something like:
select * from address where name_el ~ 'ath'
If this was JPA, I would be able to do something like this like this, since the JPA offers raw SQL support in the argyments:
Howeve, when using Blaze, the below methodology
gives me the error:
Could not parse expression 'nameEn ~ 'foo'',
The
~
operator exists in Postgres.Is there something I can do to cover my case?
Beta Was this translation helpful? Give feedback.
All reactions