How to query in jsonb postgresql and convert to predicate JPA
问题 i have stuck :) does anyone know how query postgresql in jsonb i have table USER INT id, Varchar name, jsonb categoryId the example data in categoryId field like this = [1,2,3,4,5] I have tried this query which works: select * from user where categoryId @> '2'::jsonb ; but how to query with multiple params like select * from user where categoryId @> '1,3,4'::jsonb and i will implement this to hibernate jpa/jpql-predicate, but i want to know native query first Thankyou so much 回答1: In SQL you