Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: update to Hibernate 6.x #687

Merged
merged 40 commits into from
Nov 1, 2023
Merged

Conversation

olavloite
Copy link
Contributor

@olavloite olavloite commented Aug 4, 2023

Updates this dialect to work with Hibernate 6.3.

Breaking Change

Updates this Hibernate dialect to work with Hibernate 6.3. This breaks compatibility with Hibernate 5.4. You should use version 2.x of this library if you want to continue working with Hibernate 5.4.

See https://docs.jboss.org/hibernate/orm/6.0/migration-guide/migration-guide.html for a guide for upgrading from Hibernate 5 to Hibernate 6.

@olavloite olavloite added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 4, 2023
* chore: modify SpannerTableExporter

* deps: add hibernate-ant for exporter

* chore: update tests
* chore: add SpannerDialect class

Adds a new SpannerDialect class that extends the SpannerDialect in the Hibernate core
repository. The basic function and type registration is handled by the core dialect,
which means that this Hibernate 6.x dialect in this repository is a lot smaller than
the 5.4 dialect class.

* chore: remove invalid tests

* chore: remove unnecessary spaces

* chore: fix tests

* fix: add unique delegate
* chore: update schema migration classes

* chore: include SchemaManagementTool
* chore: modify SpannerTableStatements

* chore: simplify TableStatements and fix tests

* chore: simplify SpannerTableStatements

* chore: remove commented code
* chore: update SchemaUtils

* chore: update test
Adds a translator for LIKE statements, as Cloud Spanner does not support
ESCAPE clauses.
* chore: update sample entities to jakarta package

* chore: update sample entity packages to jakarta

* chore: fix order of imports

* chore: fix import order
This removes most of the Hibernate Testing module, as it mainly tests Hibernate, and
not the SpannerDialect and related classes.
* chore: update test entities to jakarta

* chore: fix import order
* chore: update DDL batch classes

* chore: return true if create

* chore: return false if create

* fix: order on update action
@olavloite olavloite removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 18, 2023
@olavloite olavloite marked this pull request as ready for review October 9, 2023 12:37
@olavloite olavloite added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 9, 2023
@olavloite olavloite changed the title feat: update to Hibernate 6.x feat!: update to Hibernate 6.x Oct 9, 2023
@olavloite olavloite removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 1, 2023
@olavloite olavloite merged commit e2882fc into master Nov 1, 2023
6 checks passed
@olavloite olavloite deleted the hibernate6-as-same-artifact branch November 1, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants