MongoDB GORM supported by Pivotal

  • Tags: persistence, gorm, mongodb, nosql
  • Latest: 3.0.1
  • Last Updated: 07 May 2014
  • Grails version: 2.3.2 > *
36 votes

5% of Grails users

Dependency:
compile ":mongodb:3.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:3.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.1.0.RELEASE'
  compile 'org.grails:grails-datastore-core:3.1.0.RELEASE'
  test 'org.grails:grails-datastore-simple:3.1.0.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

Documentation

Further documentation on this plugin can be found using the following links:

Source

Sources can be found at Github