I have a table named users with a column groupIDs which is list of Long type.
Can I create a query using Criteria so that select all users which have a given groupID in it's groupIDs column. I am using Spring boot and PostgreSQL.
I need result something like:
SELECT *
FROM users
WHERE groupID IN groupIDs