Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1.1
-
Component/s: Documentation
-
Labels:None
Description
The code example at http://grails.org/doc/1.1.x/guide/single.html#5.4.2%20Criteria
Shows use of maxResults but it is not defined in the query list, and does not make it clear whether or not offset is supported.
There is a reference to firstResult in the '5.4.2 Criteria' section under 'Setting properties in the Criteria instance' subheading
http://grails.org/doc/1.1.x/guide/5.%20Object%20Relational%20Mapping%20%28GORM%29.html#5.4.2%20Criteria
A short note about how the max/offset translate to maxReults, firstResult might be helpful for those looking for the convention that they already know from the Dynamic finders, the pagination tag, etc.