You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting the Hibernate dialect to ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgresDialect it fails using the constructor with a specific version and falls back to the default (10.0.0) version creating a warning in the logs for an unsupported version:
org.hibernate.dialect.Dialect : HHH000511: The 10.0.0 version for [ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgresDialect] is no longer supported, hence certain features may not work properly. The minimum supported version is 12.0.0. Check the community dialects project for available legacy versions.
To Reproduce
Set the hibernate dialect to ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgresDialect
Start the application
View the warning in the logs
Expected behavior
Warning not appearing and the used Postgres version set.
Environment (please complete the following information):
HAPI FHIR Version: 7.0.0
Additional context org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl#constructDialect expects a dialectClass constructor with a DialectResolutionInfo parameter. HapiFhirPostgresDialect only has a default constructor and one with a DatabaseVersion parameter.
Suggested solution
Add an extra constructor in HapiFhirPostgresDialect with the required parameter: HapiFhirPostgresDialect(DialectResolutionInfo dialectResolutionInfo)
The text was updated successfully, but these errors were encountered:
* bugfix: creating Hibernate dialect with specific version
fixes#5723
* Apply fix to other dialects, and add changelog
* Spotless
---------
Co-authored-by: James Agnew <jamesagnew@gmail.com>
Describe the bug
When setting the Hibernate dialect to
ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgresDialect
it fails using the constructor with a specific version and falls back to the default (10.0.0) version creating a warning in the logs for an unsupported version:To Reproduce
ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgresDialect
Expected behavior
Warning not appearing and the used Postgres version set.
Environment (please complete the following information):
Additional context
org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl#constructDialect
expects a dialectClass constructor with aDialectResolutionInfo
parameter.HapiFhirPostgresDialect
only has a default constructor and one with aDatabaseVersion
parameter.Suggested solution
Add an extra constructor in
HapiFhirPostgresDialect
with the required parameter:HapiFhirPostgresDialect(DialectResolutionInfo dialectResolutionInfo)
The text was updated successfully, but these errors were encountered: