or {
userTerm {
and {
le('startDate', endDate)
ge('endDate', startDate)
}
}
schoolTerm {
and {
le('startDate', endDate)
ge('endDate', startDate)
}
}
}
'or' condition should return the result either from userTerm or schoolTerm object but it does not return the expected result.
I checked individual condition and that worked perfectly fine but when I add 'or' condition with both userTerm and schoolTerm then it returns empty list.
This used to work fine in grails 1.3.7 but fails in 2.2.4 What can be the issue? Please help.