-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Description
Original Reporter: sgatzke
Environment: Not Specified
Version: 3.0.1
Migrated From: http://jira.grails.org/browse/GPMONGODB-403
class Address {
...
Point location
static constraints = {
....
}
static mapping = {
location geoIndex: '2dsphere'
}
}
If you create a mapping for a Domain-Class that needs to create an Index for the collection in mongo DB, it will be ignore by the plugin.
So the index geoIndex isn't create when the application starts up and create the collection for the Domain-Class.
If you change the Domain-Class code change during the application is running the index gets created.