Skip to content
Kais OMRI edited this page Apr 25, 2021 · 22 revisions

Java relationship-enabled domain model persistence framework for MongoDB



Presentation

RelMongo is a framework built in top of Spring Data MongoDB which allows to use associations between collection like Java Persistence API for relational databases.

The framework enables the following features:

  • @EnableRelMongo
  • @OneToOne to process 1..1 associations
  • @OneToMany to process 1..N associations
  • LAZY and EAGER fetching method
  • Cascading PERSIST and DELETE methods
  • Bidirectional mapping using the mappedByattribute

Wiki contents

Quick Start Guide
Bidirectional mapping
RelMongo cascading operations
How it works
Compatibility matrix
How to use aggregations and lookups to query RelMongo based objects
Indexes automatic creation special considerations
Multiple MongoTemplate support