I tried to map the groupIds list into the sqlrestriction below but got the error. How should I map it?
List<String> groupIds = new ArrayList<String>();
...
...
Restrictions.sqlRestriction(
"{alias}.id in (select id from table where group_id in ?)",
groupIds, Hibernate.OBJECT
)