summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2021-04-22 13:15:45 +0000
committerGerrit Code Review <gerrit@onap.org>2021-04-22 13:15:45 +0000
commit36e81237cf573949a2e1651a87a33f87678161ba (patch)
treea56b4daa4376776d4376fa281a07249908bf5df0 /packages/apex-pdp-package-full/src
parenta80ff846c0cce0224fd3b5d0ecbe34abfd1f1a6b (diff)
parentfedd051f78d59205820399e8af19e2257818958b (diff)
Merge "Fix name of target-database property in persistence.xml files"
Diffstat (limited to 'packages/apex-pdp-package-full/src')
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml45
1 files changed, 23 insertions, 22 deletions
diff --git a/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml b/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml
index 670acb5f0..61f5409bd 100644
--- a/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml
+++ b/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml
@@ -2,6 +2,7 @@
<!--
============LICENSE_START=======================================================
Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ Modifications Copyright (C) 2019-2021 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -65,11 +66,11 @@
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
- <property name="javax.persistence.target-database" value="PostgreSQL" />
- <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex" />
- <property name="javax.persistence.jdbc.user" value="postgres" />
- <property name="javax.persistence.jdbc.password" value="postgres" />
+ <property name="eclipselink.target-database" value="MySQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:5432/apex" />
+ <property name="javax.persistence.jdbc.user" value="policy" />
+ <property name="javax.persistence.jdbc.password" value="P01icY" />
<property name="eclipselink.ddl-generation" value="create-or-extend-tables" />
<property name="eclipselink.logging.level" value="INFO" />
@@ -122,11 +123,11 @@
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
- <property name="javax.persistence.target-database" value="PostgreSQL" />
- <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex_test" />
- <property name="javax.persistence.jdbc.user" value="postgres" />
- <property name="javax.persistence.jdbc.password" value="postgres" />
+ <property name="eclipselink.target-database" value="MySQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:5432/apex_test" />
+ <property name="javax.persistence.jdbc.user" value="policy" />
+ <property name="javax.persistence.jdbc.password" value="P01icY" />
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<property name="eclipselink.logging.level" value="INFO" />
@@ -177,13 +178,13 @@
<class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
<properties>
- <property name="javax.persistence.target-database" value="PostgreSQL" />
- <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex" />
- <property name="javax.persistence.jdbc.user" value="postgres" />
- <property name="javax.persistence.jdbc.password" value="postgres" />
+ <property name="eclipselink.target-database" value="MySQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:5432/apex" />
+ <property name="javax.persistence.jdbc.user" value="policy" />
+ <property name="javax.persistence.jdbc.password" value="P01icY" />
- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL94Dialect" />
+ <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.connection.provider_class"
value="org.hibernate.connection.C3P0ConnectionProvider" />
@@ -240,12 +241,12 @@
<class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
<properties>
- <property name="javax.persistence.target-database" value="PostgreSQL" />
- <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex_test" />
- <property name="javax.persistence.jdbc.user" value="postgres" />
- <property name="javax.persistence.jdbc.password" value="postgres" />
- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL94Dialect" />
+ <property name="eclipselink.target-database" value="MySQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:5432/apex_test" />
+ <property name="javax.persistence.jdbc.user" value="policy" />
+ <property name="javax.persistence.jdbc.password" value="P01icY" />
+ <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" />
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.connection.provider_class"
value="org.hibernate.connection.C3P0ConnectionProvider" />