In the context of this problem:
I have a Grails class:
class User{
long id
static hasMany = [skills: String]
...
}
I want users from db on two conditions:
- set of identifiers
- skill set (lines)
I wrote this query that works for identifiers, but I cannot get some of the skill to work:
User.findAll( "from User
where id in (5067120,5067121,...5067139)" )
At the moment, I select users with the right skills manually after this request, but obviously this is not an effective solution. How can i solve this?
Thank!
source
share