Morphium
A Java ODM for MongoDB that does more than mapping.
Object mapping. Built-in messaging. In-memory testing. One dependency.
v6.2.0 · Quarkus ExtensionZero-Config ODM
Annotate POJOs, get persistence. @Entity, @Id, @Index — no XML, no codec registries.
Built-in Messaging
MongoDB-backed message queue. No Kafka, no RabbitMQ, no extra infrastructure.
In-Memory Testing
Full MongoDB emulation in-process. Tests in milliseconds, no Docker required.
Jakarta Data Ready
Declarative @Repository interfaces with build-time query generation.
Data Access & Persistence
Map Java objects to MongoDB documents with annotations, caching, versioning and type-safe queries.
Product Catalog
Core CRUD operations, embedded documents, indexing, LRU caching and field mapping.
Blog System
Versioning, cross-collection references, lifecycle callbacks and automatic timestamps.
Polymorphism
Java type hierarchies with automatic type discriminators and custom type mappers.
Advanced Query
Fluent query builder with every MongoDB operator, pagination, projections and text search.
Jakarta Data 1.0
Declarative @Repository interfaces with query derivation, JDQL and MorphiumRepository escape hatch.
Processing & Analytics
Aggregation pipelines, bulk operations and geospatial queries for data processing at scale.
Platform & Operations
Messaging, transactions, audit logging and health monitoring built into the framework.
Messaging
MongoDB-backed message queue with topics, exclusive messages and live updates via SSE.
Transactions
@MorphiumTransactional CDI interceptor, atomic inc/dec and version-based locking.
Audit Log
Capped collections, tailable cursors and lifecycle callbacks for automatic logging.
Health Checks
MicroProfile Health probes auto-registered by the Quarkus extension. Zero configuration.