Skip to content

Commit

Permalink
Temporary fix for ORM links until after lapping packages solution found
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Sep 9, 2015
1 parent 296418f commit 98b3557
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions resources/doc.properties
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ api.javax.servlet=http://download.oracle.com/javaee/1.4/api
api.java.=http://docs.oracle.com/javase/6/docs/api
api.groovy.=http://docs.groovy-lang.org/docs/latest/html/api
api.org.codehaus.groovy.grails=http://grails.org/doc/3.0.x/api
api.grails.=http://grails.github.io/grails-doc/latest/api
api.org.grails.=http://grails.org/doc/3.0.x/api
api.grails.orm.=http://grails.github.io/grails-data-mapping/latest/api
api.grails.gorm.=http://grails.github.io/grails-data-mapping/latest/api
api.grails.=http://grails.github.io/grails-doc/3.0.x/api
api.org.grails.=http://grails.github.io/grails-doc/3.0.x/api

# Regular expression to parse out source code
source.tag.regex=/\s*?def\s+?[a-zA-Z]+?\s*?=\s*?\{\s*?attrs\s*?,{0,1}\s*?body{0,1}\s*?->.+?/
4 changes: 2 additions & 2 deletions src/en/ref/Domain Classes/createCriteria.gdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ h1. createCriteria

h2. Purpose

Creates and returns an instance of Grails' [HibernateCriteriaBuilder|api:grails.orm.HibernateCriteriaBuilder] that can be used to construct criteria queries.
Creates and returns an instance of Grails' [HibernateCriteriaBuilder|http://grails.github.io/grails-data-mapping/latest/api/grails/orm/HibernateCriteriaBuilder.html] that can be used to construct criteria queries.

h2. Examples

Expand Down Expand Up @@ -33,7 +33,7 @@ def results = c.list (max: 10, offset: 10) {
}
{code}

Because that query includes pagination parameters (max and offset), this will return a [PagedResultList|api:grails.orm.PagedResultList] which has a getTotalCount() method to return the total number of matching records for pagination. Two queries are still run, but they are run for you and the results and total count are combined in the @PagedResultList@.
Because that query includes pagination parameters (max and offset), this will return a [PagedResultList|http://grails.github.io/grails-data-mapping/latest/api/grails/orm/PagedResultList.html] which has a getTotalCount() method to return the total number of matching records for pagination. Two queries are still run, but they are run for you and the results and total count are combined in the @PagedResultList@.

{code:java}
println "Rendering ${results.size()} Accounts of ${results.totalCount}"
Expand Down
2 changes: 1 addition & 1 deletion src/en/ref/Domain Classes/list.gdoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def results = Book.list(max: 10, offset: 100, sort: "title", order: "desc")
def results = Book.list(fetch: [authors: "eager"])
{code}

When @max@ is specified as a named argument this will return a [PagedResultList|api:grails.orm.PagedResultList] which has a getTotalCount() method to return the total number of matching records for pagination. Two queries are still run, but they're run for you and the results and total count are combined in the @PagedResultList@.
When @max@ is specified as a named argument this will return a [PagedResultList|http://grails.github.io/grails-data-mapping/latest/api/grails/orm/PagedResultList.html] which has a getTotalCount() method to return the total number of matching records for pagination. Two queries are still run, but they're run for you and the results and total count are combined in the @PagedResultList@.

h2. Description

Expand Down
2 changes: 1 addition & 1 deletion src/en/ref/Domain Classes/withCriteria.gdoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def results = Book.withCriteria {

h2. Description

The @withCriteria@ method allows the inline definition of [Criteria|guide:criteria]. Arguments to the [HibernateCriteriaBuilder|api:grails.orm.HibernateCriteriaBuilder] can be passed as the first parameter:
The @withCriteria@ method allows the inline definition of [Criteria|guide:criteria]. Arguments to the [http://grails.github.io/grails-data-mapping/latest/api/grails/orm/HibernateCriteriaBuilder.html] can be passed as the first parameter:

{code:java}
def book = Book.withCriteria(uniqueResult: true) {
Expand Down

0 comments on commit 98b3557

Please sign in to comment.