How can I use find_in_set
in jpa?
I need to achieve like this
SQL - select * from teacher where find_in_set("5", deptIds) and id = 101
where deptIds
have comma separated ids (I know it's bad idea but legacy.)
To do so I had been tried using Criteria
but not found any Restrictions
that can fulfill find_in_set
.
Note - need possible solution with Criteria
and Restrictions