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
Userentity and its relation with groupsIds?private List<Long> groupIDs? Does this property has an annotation over it? like@OneToMany? You can share such small details without exposing your full code.