How to convert PSQLs ::json @> ::json to a jpa/jpql-predicate
问题 Say i have a db-table looking like this: CREATE TABLE myTable( id BIGINT, date TIMESTAMP, user_ids JSONB ); user_ids are a JSONB-ARRAY Let a record of this table look like this: { "id":13, "date":"2019-01-25 11:03:57", "user_ids":[25, 661, 88] }; I need to query all records where user_ids contain 25. In SQL i can achieve it with the following select-statement: SELECT * FROM myTable where user_ids::jsonb @> '[25]'::jsonb; Now i need to write a JPA-Predicate that renders "user_ids::jsonb @> '