I have an entity
import jakarta.persistence.Entity
I'm using CriteriaBuilder
import jakarta.persistence.criteria.CriteriaBuilder
Using this line gives 1 result, as expected.
all.where(criteriaBuilder.equal(root.get("code"), item.getCode()));
Using this line gives 0 results, as not expected.
all.where(criteriaBuilder.equal(root.get("uuid"), item.getUuid()));
The field generated in Postgresql has data_type uuid (and contains values).
The hibernate query looks like this: select c1_0.uuid, c1_0.code, c1_0.created_time from case_o c1_0 where c1_0.uuid=?
I have tried changing the dialect and the database-type but that does not seem to help.
Any ideas on what the correct way to filter on uuid is?