Can you combine controller list params with Hibernate criteria?
问题 I have noticed that you can pass "params" straight in to the boilerplate code below: [fooInstanceList: Foo.list(params), fooInstanceTotal: Foo.count()] Is it possible to pass "params" in as part of a Hibernate criteria for example the one below? def c = Foo.createCriteria() def results = c { not { eq("bar","test") } } [fooInstanceList: results, fooInstanceTotal: results.size()] I am looking to use the "max" and "offset" params so I can use it for paging for example. I would also like to use