Skip to content
Kais OMRI edited this page May 29, 2020 · 22 revisions

Use associations (references) between collections in MongoDB database.


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

Clone this wiki locally