Grace Framework

Grace Data MongoDB

Provides an Object-Mapping layer on top of MongoDB

2023.3.0
  • Table of contents
    1Introduction
    2Release History
    3Getting Started
    4Mapping Domain Classes
    5Querying
    6Multiple Data Sources
    7Switching Database or Collection at Runtime
    8Multi-Tenancy
    9Stateless Mode
    10Using the MongoDB Driver Directly
    11Transactions
    12Unit Testing
    13Integration Testing
  • Quick Reference
  • API Docs
(Quick Reference)

Grace Data MongoDB

Authors: Michael Yan

Version: 2023.3.0

Table of Contents

1Introduction
1.1Compatibility with GORM for Hibernate
1.2Upgrade Notes
2Release History
2.1What's new in 2023.x
3Getting Started
3.1Using MongoDB Standalone
3.2Combining MongoDB and Hibernate
3.3Advanced Configuration
3.4Using GORM in Spring Boot
3.5GORM for MongoDB without Grails
4Mapping Domain Classes
4.1Identity Generation
4.2Understanding Dirty Checking
4.3Customizing the WriteConcern
4.4Dynamic Attributes
4.5Custom User Types
5Querying
5.1Basic Querying
5.2Querying Indexing
5.3Geospacial Querying
5.3.1Geospacial 2D Sphere Support
5.3.2Geospacial 2D Index Support
5.3.3GeoJSON Data Models
5.4Full Text Search
6Multiple Data Sources
6.1Configuring Multiple Mongo Clients
6.2Mapping Domain Classes to Mongo Clients
6.3Switching between Mongo Clients
6.4The ConnectionSources API
7Switching Database or Collection at Runtime
8Multi-Tenancy
8.1Configuring Multi Tenancy
8.2Multi-Tenancy Transformations
8.3Multi Tenancy Modes
8.4Dynamic ConnectionSources
9Stateless Mode
10Using the MongoDB Driver Directly
11Transactions
12Unit Testing
13Integration Testing
Quick Reference (hide)

Beans

mongo

Domain Classes

DB
collection
collectionName
countHits
dbo
findByGeoIntersects
findByGeoWithin
findByNear
findByNearSphere
findByWithinBox
findByWithinCircle
search
searchTop
useCollection
useDatabase
withCollection
withDatabase
Copyright © 2022-2025 Michael Yan and the original authors. The content is licensed under a Creative Commons Attribution 4.0 International (CC BY SA 4.0) license.