# MorphiaOrg/morphia

MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver

Repository: https://github.com/MorphiaOrg/morphia
Canonical: https://ross.abutalabs.com/products/morphia
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, kotlin, mongodb, odm
Last push: 2026-08-22T19:50:26+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4878, "days_push": 11, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1675, forks 449 (observed 2026-08-28T04:05:20.462255+00:00)

## What it is
Morphia is a Java object-document mapper (ODM) for MongoDB built on top of the official MongoDB Java driver. It maps Java and Kotlin classes to MongoDB documents, providing type-safe persistence and querying.

## Use cases
- map Java POJOs to MongoDB documents
- query MongoDB with type-safe Java APIs
- persist Kotlin objects in MongoDB
- replace raw MongoDB driver boilerplate with an ODM
- manage entity annotations and indexes for MongoDB collections

## When to choose
- you use MongoDB from Java or Kotlin and want ORM-style mapping
- you prefer annotation-based entity mapping over the raw driver
- you want type-safe queries against MongoDB collections

## When to avoid
- you use a relational database instead of MongoDB
- you need Spring Data MongoDB's Spring integration specifically
- you want a driver-free reactive stack with minimal abstraction

## Facets
- artifact type: library
- maturity: active
- function: orm, database-driver, database
- domain: databases, backend, developer-tools
- platform: jvm
- tags: mongodb, odm, object-document-mapper, nosql

## Member repositories
- MorphiaOrg/morphia (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.462255+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:28.316061+00:00, confidence not recorded.
  - readme: https://github.com/MorphiaOrg/morphia (fetched 2026-08-28T04:05:20.462255+00:00, sha 1620c720f6aa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
