From c7d5716ffbf3d6d41fca28c11b641a22c8e015cd Mon Sep 17 00:00:00 2001 From: jvi Date: Fri, 18 Sep 2020 18:29:12 +0200 Subject: [PATCH] Removing dialect as it is calculated by hibernate --- src/main/java/ca/uhn/fhir/jpa/starter/EnvironmentHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/EnvironmentHelper.java b/src/main/java/ca/uhn/fhir/jpa/starter/EnvironmentHelper.java index 036f2be..4dbc122 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/EnvironmentHelper.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/EnvironmentHelper.java @@ -14,8 +14,8 @@ public class EnvironmentHelper { public static Properties getHibernateProperties(ConfigurableEnvironment environment) { Properties properties = new Properties(); + if (environment.getProperty("spring.jpa.properties", String.class) == null) { - properties.put("hibernate.dialect", "org.hibernate.dialect.H2Dialect"); properties.put("hibernate.search.model_mapping", "ca.uhn.fhir.jpa.search.LuceneSearchMappingFactory"); properties.put("hibernate.format_sql", "false"); properties.put("hibernate.show_sql", "false");