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.
There are various ways to use MongoDB from Java and major MongoDB Java frameworks got compared.
Original title and link: Domain-model persistence with Morphia and MongoDB (NoSQL databases © myNoSQL)