Last updated by jkuehn 1 year ago
Add this plugin to your Grails application using
grails install-plugin mongodb-morphia
Then configure the MongoDB connection in your DataSource.groovy:
grails-app/conf/DataSource.groovy
mongodb {
host = 'localhost'
port = 27017
databaseName = 'test'
}
Now you can generate domain classes using the
grails create-mongodb-class command and use them as described in the
user guide .
Last updated by jkuehn 1 year ago
MongoDB GORM plugin for Grails
MongoDB is a scalable, high-performance, schemafree and
production ready NoSQL database. This plugin is an
alternative GORM implementation for MongoDB. It provides GORM functionality by wrapping
Morphia as a lightweight, feature-rich, type-safe library for mapping domain classes to/from MongoDB. You will find the
sourcecode at githubMorphia is currently being integrated into the core MongoDB java driver. So in future this plugin will have the MongoDB driver as the only dependency.
User Guide
See the
User Guide for a quickstart guide and further information
Last updated by admin 1 year ago
Last updated by admin 1 year ago