Morphia is a lightweight type-safe library for mapping Java objects to/from MongoDB.
Features
- Easy to use, and very lightweight. Reflection is used once per type and cached for good performance.
- Datastore and DAO access abstractions, or roll your own.
- Type-safe, and Fluent Query support with (runtime) validation.
- Annotation-based mapping behavior; there are no XML files.
- Extensions: Validation (jsr303) and SLF4J Logging.
Useful links
- Documentation: http://morphiaorg.github.io/morphia/
- Source code: https://github.com/MorphiaOrg/morphia
- MongoDB server manual: https://docs.mongodb.com/manual/