"readOnly", "fetchSize", "timeout", and "flushMode" work just like the existing pagination/cache parameters on all of the dynamic finders (findBy, findAllBy, list, etc) as well as executeQuery.
All of these methods are already on the Hibernate 3.6 Criteria and Query objects, this patch simply passes those values through to hibernate.
If accepted, I'll also update the grails-docs repo with notes around the 4 new parameters that have been added to the map.
GRAILS-7336 & GRAILS-7154 adding readOnly, fetchSize, timeout, and fl…
…ushMode options to grails dynamic finders/criteria/executeQuery methods