Plugins You can find out about all the publicly available Grails plugins.

Alternative MongoDB GORM based on the Morphia library

  • Tags: mongodb, nosql, gorm
  • Latest: 0.8.2
  • Last Updated: 19 November 2012
  • Grails version: 1.3.4 > *
4 votes
compile "org.grails.plugins:mongodb-morphia:0.8.2"

 Documentation  Source  Issues


GORM implementation for the MongoDB NoSQL database based on the Morphia library


Add this plugin to your Grails application using

grails install-plugin mongodb-morphia

Then configure the MongoDB connection in your 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 .


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 github

Morphia 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