Alternative MongoDB GORM based on the Morphia library

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

 Documentation  Source  Issues

Summary

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

Installation

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 .

Description

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