aboutsummaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml')
-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" />