MongoDB GORM supported by SpringSource

  • Tags : persistence, gorm, mongodb, nosql
  • Latest : 2.0.1
  • Last Updated: 25 March 2014
  • Grails version : 2.3.2 > *
33 votes

5% of Grails users

Dependency :
compile ":mongodb:2.0.1"

Documentation Source Issues

Summary

A plugin that integrates the Mongo document datastore into Grails, providing a GORM API onto it

Installation

Add the following plugin definition to your BuildConfig:

compile ':mongodb:2.0.1'

Also, due to a problem in the Grails 2.3.7 and below dependency graph which is fixed in 2.3.8 and above you need to explicitly define the following dependencies in your BuildConfig if you are using 2.3.7 or below:

dependencies {
  …
  compile 'org.grails:grails-datastore-gorm:3.0.4.RELEASE'
  compile 'org.grails:grails-datastore-core:3.0.4.RELEASE'
  test 'org.grails:grails-datastore-simple:3.0.4.RELEASE'
}

Description

MongoDB is a NoSQL datastore that bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). MongoDB (from "humongous") is a scalable, high-performance, open source, document-oriented database.

This project aims to provide an object-mapping layer on top of Mongo to ease common activities such as:

  • Marshalling from Mongo to Groovy/Java types and back again
  • Support for GORM dynamic finders, criteria and named queries
  • Session-managed transactions
  • Validating domain instances backed by the Mongo datastore
Further documentation on this plugin can be found here

Sources can be found at Github