SpringSource/grails-data-mapping — Issue #19: [Grails and mongodb] collection mapping does not work
Author: rosenfeld
Created: 2011-12-21 17:54:46+00:00
State: open

The example below extracted from the documentation doesn't work:

http://springsource.github.com/grails-data-mapping/mongo/manual/guide/3.%20Mapping%20Domain%20Classes%20to%20Mongo%20Collections.html

class Person {
..
static mapping = {
collection "mycollection"
database "mydb"
}
}

Grails complains about "collection" not being supported in the static mapping.