Skip to content
jkuehn edited this page Sep 14, 2010 · 15 revisions

MongoDB GORM plugin for Grails

MongoDB is a scalable, high-performance, schemafree and production ready NoSQL database. This plugin implements the GORM functionality for MongoDB. Under the hood it uses Morphia as a lightweight type-safe library for mapping domain classes to/from MongoDB.

Features

Features implemented to far:

  • Instance methods: save, delete
  • Class methods: get, find, findAll, delete, exists, count, list, getDatastore (returns the Morphia Datastore)
  • Dynamic finders like findAllByNameAndDegreeBetween(…)
  • Constraints and validation support
  • Automatic timestamping of dateCreated and lastUpdated
  • Gorm events beforeSave, afterSave, beforeDelete, afterDelete (others, like afterLoad are supported by Morphia)
  • Works with MongoDB 1.4

See the Quickstart page for a usage example. You can also download a petclinic sample application port which uses gorm-mongodb to see the use of embedded and referenced domain classes.

You will find a list of all domain class methods in the user guide

Questions and Bug Reports

  • mailing list: coming soon
  • jira: coming soon

Other links

Change Log

see here

Author:

  • Juri Kuehn (juri.kuehn [at] gmail.com)
Clone this wiki locally