Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fmjsjx/bson-model

An ORM like object model framework for BSON/MongoDB.
https://github.com/fmjsjx/bson-model

bson java mongodb orm-framework

Last synced: 2 months ago
JSON representation

An ORM like object model framework for BSON/MongoDB.

Awesome Lists containing this project

README

        

# bson-model

A data object model framework based on `BSON/MongoDB`.

> Since version 2.x, all modules are compiled based on JDK-17.

## Features

- Provides mapping ways for multiple data types.
- Provides APIs for data conversions between object model and BSON document, and supports automatic generation of part update expressions.
- Provides JSON serialization/deserialization.
- Provides a `Java code generator` that can quickly generate data object model code through YAML configuration file.

## How to use

All releases will be released to the [Maven central repository](https://repo1.maven.org/maven2/).

### Using maven

`pom.xml`
```xml





com.github.fmjsjx
bson-model-bom
2.2.0-RC1





com.github.fmjsjx
bson-model-core



com.github.fmjsjx
bson-model-generator
provided
true

```

### Using gradle

#### Groovy DSL
```groovy
repositories {
mavenCentral
}

dependencies {
// Choose Version
implementation platform('com.github.fmjsjx:bson-model-bom:2.2.0-RC1')
// Core Library
implementation 'com.github.fmjsjx:bson-model-core'
// Code Generator
compileOnly 'com.github.fmjsjx:bson-model-generator'
}
```
#### Kotlin DSL
```kotlin
repositories {
mavenCentral()
}

dependencies {
// Choose Version
implementation(platform("com.github.fmjsjx:bson-model-bom:2.2.0-RC1"))
// Core Library
implementation("com.github.fmjsjx:bson-model-core")
// Code Generator
compileOnly("com.github.fmjsjx:bson-model-generator")
}
```