Skip to content

Commit

Permalink
HHH-18080 Fix default version handling in dialects when not using JDB…
Browse files Browse the repository at this point in the history
…C metadata
  • Loading branch information
sebersole committed May 10, 2024
1 parent 32d4f15 commit eb5a1ec
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions migration-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,14 @@ unsupported for use by applications (as should have been obvious from the name).

This setting controls whether Hibernate should be allowed to access the JDBC `DatabaseMetaData` during bootstrapping.
With this setting enabled (the default), Hibernate will access the `DatabaseMetaData` to perform some internal
configuration based on the reported capabilities of the underlying database. Disabling this setting requires
explicit settings for this configuration. At a minimum this includes:
configuration based on the reported capabilities of the underlying database.

Disabling this setting requires explicit, additional settings for this configuration. At a minimum, this
includes `hibernate.dialect` or `jakarta.persistence.database-product-name` to indicate the type of database.
In such cases, Hibernate will assume the link:{userGuideBase}#compatibility-database[minimum supported version]
of the database (as reported by the link:{javadocsBase}/org/hibernate/dialect/Dialect.html#getMinimumSupportedVersion()[Dialect]).
Users may also configure `jakarta.persistence.database-product-version` to indicate a specific database version.

* `hibernate.dialect` or `jakarta.persistence.database-product-name` to indicate the type of database
* `jakarta.persistence.database-product-version` to indicate the database version

[[generic-generator]]
== Deprecation of `@GenericGenerator`
Expand Down

0 comments on commit eb5a1ec

Please sign in to comment.