Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/fmjsjx/bson-model
- Owner: fmjsjx
- License: mit
- Created: 2021-09-09T03:53:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T04:34:49.000Z (6 months ago)
- Last Synced: 2024-10-03T10:49:09.259Z (3 months ago)
- Topics: bson, java, mongodb, orm-framework
- Language: Java
- Homepage:
- Size: 567 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
}
```