You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/02/04 17:46:31 UTC

[isis-app-simpleapp] branch jpa updated: ISIS-2512: fixes datasource configurations

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch jpa
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git


The following commit(s) were added to refs/heads/jpa by this push:
     new 4185b88  ISIS-2512: fixes datasource configurations
4185b88 is described below

commit 4185b888cae84a62a72d60e34c7179b14366eb47
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Feb 4 18:46:19 2021 +0100

    ISIS-2512: fixes datasource configurations
---
 webapp/src/main/resources/application.yml                     |  2 +-
 webapp/src/main/resources/config/application.properties       | 11 ++---------
 ...ESQL.properties => todo~application-POSTGRESQL.properties} |  0
 ...ERVER.properties => todo~application-SQLSERVER.properties} |  0
 4 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/webapp/src/main/resources/application.yml b/webapp/src/main/resources/application.yml
index dd840f0..b568255 100644
--- a/webapp/src/main/resources/application.yml
+++ b/webapp/src/main/resources/application.yml
@@ -67,7 +67,7 @@ isis:
         show-drop-down-on-footer: true
 
   persistence:
-    jpa:
+    schema:
       auto-create-schemas: simple
       create-schema-sql-template: "CREATE SCHEMA IF NOT EXISTS %S"
 
diff --git a/webapp/src/main/resources/config/application.properties b/webapp/src/main/resources/config/application.properties
index 654146b..225a493 100644
--- a/webapp/src/main/resources/config/application.properties
+++ b/webapp/src/main/resources/config/application.properties
@@ -7,16 +7,9 @@
 # See also /application.yml
 #
 
+spring.datasource.platform=h2
+spring.datasource.url=jdbc:h2:mem:simple
 
-# note that properties under 'isis.persistence.jdo-datanucleus.impl' are passed through directly
-# to DataNucleus, and use variously camelCase or PascalCase rather than kebab-case
-
-isis.persistence.jdo-datanucleus.impl.javax.jdo.option.ConnectionURL = jdbc:h2:mem:test
-isis.persistence.jdo-datanucleus.impl.javax.jdo.option.ConnectionDriverName = org.h2.Driver
-isis.persistence.jdo-datanucleus.impl.javax.jdo.option.ConnectionUserName = sa
-isis.persistence.jdo-datanucleus.impl.javax.jdo.option.ConnectionPassword =
-
-isis.persistence.jdo-datanucleus.impl.datanucleus.schema.autoCreateAll=true
 spring.flyway.enabled=false
 
 # uncomment to run during bootstrap
diff --git a/webapp/src/main/resources/config/application-POSTGRESQL.properties b/webapp/src/main/resources/config/todo~application-POSTGRESQL.properties
similarity index 100%
rename from webapp/src/main/resources/config/application-POSTGRESQL.properties
rename to webapp/src/main/resources/config/todo~application-POSTGRESQL.properties
diff --git a/webapp/src/main/resources/config/application-SQLSERVER.properties b/webapp/src/main/resources/config/todo~application-SQLSERVER.properties
similarity index 100%
rename from webapp/src/main/resources/config/application-SQLSERVER.properties
rename to webapp/src/main/resources/config/todo~application-SQLSERVER.properties