From 64aeb9b2fe250ce843e47a60763d5012dee19016 Mon Sep 17 00:00:00 2001 From: Kai-W Date: Sat, 12 Nov 2022 16:43:56 +0100 Subject: [PATCH] Added hibernate.dialect for Postgress to Readme (#451) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index c104d23..b30dd87 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,9 @@ spring: username: admin password: admin driverClassName: org.postgresql.Driver + jpa: + properties: + hibernate.dialect: ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect ``` Because the integration tests within the project rely on the default H2 database configuration, it is important to either explicity skip the integration tests during the build process, i.e., `mvn install -DskipTests`, or delete the tests altogether. Failure to skip or delete the tests once you've configured PostgreSQL for the datasource.driver, datasource.url, and hibernate.dialect as outlined above will result in build errors and compilation failure. @@ -235,6 +238,12 @@ spring: driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver ``` +Also, make sure you are not setting the Hibernate dialect explicitly, in other words remove any lines similar to: + +``` +hibernate.dialect: {some none Microsoft SQL dialect} +``` + Because the integration tests within the project rely on the default H2 database configuration, it is important to either explicity skip the integration tests during the build process, i.e., `mvn install -DskipTests`, or delete the tests altogether. Failure to skip or delete the tests once you've configured PostgreSQL for the datasource.driver, datasource.url, and hibernate.dialect as outlined above will result in build errors and compilation failure.