Question : criteria in grails
Answered by : silly-sandpiper-8ny2trv4zjg8
def criteria = Person.createCriteria()
def result = criteria.list { or { and { eq('lastName', 'Doe') gt('age', 15) } and { eq('lastName', 'Smith') gt('age', 18) } }
}
Source : | Last Update : Thu, 18 Feb 21