Criteria In Grails

[Solved] Criteria In Grails | Groovy - Code Explorer | yomemimo.com
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

Answers related to criteria in grails

Code Explorer Popular Question For Groovy