Morphia

The Java Object Document Mapper for MongoDB

Latest documentation

Features

Java to Document Mapping
Transparently map your Java entities to MongoDB documents and back.
Extensible Type Conversion
Easily add support for custom types
Fluent Query and Update APIs
Aggregation Support
Use MongoDB's aggregation framework with your application's Java classes.
Geospatial Queries

Quick Start

The recommended way to get started using Morphia in your project is with a dependency management system. Select the version and dependency management system below and the snippet can be copied and pasted into your build.

Alternatively, head over to our documentation to learn more about getting started with Morphia.


      <dependencies>
          <dependency>
              <groupId>org.mongodb.morphia</groupId>
              <artifactId>morphia</artifactId>
              <version>1.3.2</version>
          </dependency>
      </dependencies>

      

Releases

ReleaseDocumentation
1.3.2 Reference | API
1.2.2 Reference | API
1.1.1 Reference | API
1.0.1 Reference | API
1.4.0-SNAPSHOT Reference | API

MongoDB University

M101J: MongoDB for Java Developers

Learn everything you need to know to get started building a MongoDB-based app. From basic installation, JSON, schema design, querying, insertion of data, indexing and working with the Java driver.

Learn More