From a1e2ca3ae13d24e7f66b856ac251c39de02d3eb5 Mon Sep 17 00:00:00 2001 From: Jens Kristian Villadsen Date: Thu, 27 Oct 2022 08:21:08 +0200 Subject: [PATCH] revering to H2 (#449) --- src/main/resources/application.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 2d84609..a651fa9 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -14,10 +14,11 @@ spring: check-location: false baselineOnMigrate: true datasource: - url: jdbc:postgresql://hapi-fhir-postgres:5432/hapi - username: admin - password: admin - driverClassName: org.postgresql.Driver + url: 'jdbc:h2:file:./target/database/h2' + #url: jdbc:h2:mem:test_mem + username: sa + password: null + driverClassName: org.h2.Driver max-active: 15 # database connection pool size @@ -31,7 +32,7 @@ spring: #If using H2, then supply the value of ca.uhn.fhir.jpa.model.dialect.HapiFhirH2Dialect #If using postgres, then supply the value of ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect - hibernate.dialect: ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect + hibernate.dialect: ca.uhn.fhir.jpa.model.dialect.HapiFhirH2Dialect # hibernate.hbm2ddl.auto: update # hibernate.jdbc.batch_size: 20 # hibernate.cache.use_query_cache: false