Skip to content

Commit

Permalink
Bump Hibernate ORM dependency version (#16)
Browse files Browse the repository at this point in the history
* bump hibernate-core dependency to latest version

* rename spotless license filename; add comment regarding the bug that we need to manually add license to package-info.java

* fix minor issues in README.md

* tweak .editorconfig to avoid "import (static) wildcard"

* rename the image filename to emphasize its focus is 'mongodb dialect'

* add note regarding 'standalone' mode not being supported and recommendation to convert it to replica set

* Update README.md

Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>

* Update README.md

Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>

---------

Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
  • Loading branch information
NathanQingyangXu and stIncMale authored Nov 18, 2024
1 parent caf4001 commit 4c88b28
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ij_java_case_statement_on_separate_line = true
ij_java_catch_on_new_line = false
ij_java_class_annotation_wrap = split_into_lines
ij_java_class_brace_style = end_of_line
ij_java_class_count_to_use_import_on_demand = 5
ij_java_class_count_to_use_import_on_demand = 50
ij_java_class_names_in_javadoc = 1
ij_java_deconstruction_list_wrap = normal
ij_java_do_not_indent_top_level_class_members = false
Expand Down Expand Up @@ -149,7 +149,7 @@ ij_java_method_parameters_right_paren_on_new_line = false
ij_java_method_parameters_wrap = off
ij_java_modifier_list_wrap = false
ij_java_multi_catch_types_wrap = normal
ij_java_names_count_to_use_import_on_demand = 3
ij_java_names_count_to_use_import_on_demand = 30
ij_java_new_line_after_lparen_in_annotation = false
ij_java_new_line_after_lparen_in_deconstruction_pattern = true
ij_java_new_line_after_lparen_in_record_header = false
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ This project aims to provide a library to seamlessly integrate MongoDB with Hibe

MongoDB speaks _MQL_ (**M**ongoDB **Q**uery **L**anguage in JSON format) instead of SQL. This project creates a MongoDB Hibernate Dialect by:

- create a JDBC adapter using [MongoDB Java Driver](https://www.mongodb.com/docs/drivers/java-drivers/)
- translate Hibernate's internal SQL AST into MQL
- Creating a JDBC adapter using [MongoDB Java Driver](https://www.mongodb.com/docs/drivers/java-drivers/)
- Translating Hibernate's internal SQL AST into MQL

<img src="hibernate-dialects.png" alt="MongoDB Dialect" width="800"/>
<img src="mongodb_dialect.png" alt="MongoDB Dialect" />

## Development

Expand All @@ -19,6 +19,8 @@ Initially Hibernate ORM v6.6 is the dependency version.

MongoDB v6 is the minimal version this dialect supports.

> [Standalone instance](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-standalone) is not supported. It is recommended to [convert it to a replica set](https://www.mongodb.com/docs/manual/tutorial/convert-standalone-to-replica-set/).
### Build from Source

#### Static Code Analysis
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ spotless {

formatAnnotations()

licenseHeaderFile("copyright.txt") // contains '$YEAR' placeholder
// need to add license header manually to package-info.java
// due to the bug: https://github.com/diffplug/spotless/issues/532
licenseHeaderFile("spotless.license.java") // contains '$YEAR' placeholder
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ errorprone = "4.1.0"
google-errorprone-core = "2.35.1"
nullaway = "0.12.1"
jspecify = "1.0.0"
hibernate-core = "6.6.1.Final"
hibernate-core = "6.6.2.Final"
mongo-java-driver-sync = "5.2.0"
slf4j-api = "2.0.16"
logback-classic = "1.5.12"
Expand Down
File renamed without changes
File renamed without changes.

0 comments on commit 4c88b28

Please sign in to comment.