How to query a collection of inherited object for a particular object type in grails ?
- by quilovnic
Hi,
I have a this model :
class Question{
Set components
static hasMany = [components: QuestionComponent]
}
class QuestionComponent{
static belongsTo = Question
}
class QuestionComponentStatus extends QuestionComponent{
}
class QuestionComponentOther extends QuestionComponent{
}
I want to get only QuestionComponentStatus from Set…