I want to integrate sort, order, max and offset in a findAll query. The following works fine:
def books = Book.findAll(\"from Book as b where b.approved=true ord
Using a where query works for me:
def books = Book.where{approved == true}.list(sort: 'dateCreated', order: 'desc', max: max, offset: offset)
Or with params straight from the page:
def books = Book.where{approved == true}.list(params)