(Quick Reference)

1 Introduction - Reference Documentation

Authors: Juri Kuehn

Version: 0.8.0

1 Introduction

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, deleteAll, exists, count, list
  • Dynamic finders like findAllByNameAndDegreeBetween(...)
  • Constraints and validation support
  • Automatic timestamping of dateCreated and lastUpdated
  • Gorm events beforeSave, afterSave, beforeDelete, afterDelete, beforeValidate (others, like afterLoad are supported by Morphia )
  • Works with MongoDB 1.6, 1.8 and 2.0
  • AST Transformations that inject all necessary fields and annotations for morphia
  • Lazy references supported (experimental)
  • generate-all support

This plugin is not feature complete concerning the GORM api. Yet it has been proven to be very stable in our production environment. See the quickstart page for a usage example. You can also download a petclinic sample application port which uses mongodb-morphia to see the use of embedded and referenced domain classes.

Questions and Bug Reports

Other links

Change Log

see here

Author:

  • Juri Kuehn (juri.kuehn at gmail.com)