Answers for "Pagination grails example"

0

pagination in grails

def criteria = Person.createCriteria()
def result = criteria.list {
    eq ('firstName', 'John')
    order('lastName', 'asc')
    firstResult(0)
    maxResults(10)
}
Posted by: Guest on February-11-2021

Browse Popular Code Answers by Language