NoSQL: Domain-model persistence with Morphia and MongoDB

| | bookmark | email

Domain-model persistence with Morphia and MongoDB

Morphia is an Apache-licensed Google Code project that lets you persist, retrieve, delete, and query POJOs stored as documents in MongoDB. Morphia accomplishes this by providing a set of annotations and a wrapper around the Mongo Java driver. Morphia is conceptually similar to object-relational mappers such as Java Persistence API (JPA) or Java Data Objects (JDO) implementations. In this article, I'll show how to use Morphia with a Java domain model mapped to MongoDB.

tags:MongoDB

via NoSQL databases