aboutsummaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2021-11-16 08:44:43 +0000
committerWayne Dunican <wayne.dunican@est.tech>2022-01-27 11:48:23 +0000
commit47847dc47c42325ed416d59b1f6b9087733db92f (patch)
tree66336adc55b57102e14310193eb8225d349694e6 /packages/apex-pdp-package-full/src
parenta84cda443bb55b74e89a61150814596d3a311dd3 (diff)
Remove references to MariaDB from resource files
Issue-ID: POLICY-2086 Change-Id: If38af6a319211c96f8be94f32551dc00b91d6ed1 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Diffstat (limited to 'packages/apex-pdp-package-full/src')
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml50
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/properties/db.properties6
2 files changed, 31 insertions, 25 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 61f5409bd..23c70b18b 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,7 +2,7 @@
<!--
============LICENSE_START=======================================================
Copyright (C) 2016-2018 Ericsson. All rights reserved.
- Modifications Copyright (C) 2019-2021 Nordix Foundation.
+ Modifications Copyright (C) 2019-2021, 2022 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -59,18 +59,18 @@
<class>org.onap.policy.apex.domains.aadm.concepts.IMSIStatus</class>
<class>org.onap.policy.apex.domains.aadm.concepts.IPAddressStatus</class>
<class>org.onap.policy.apex.domains.adaptive.concepts.AnomalyDetection</class>
- <class>org.onap.policy.apex.domains.adaptive.concepts.AutoLearn</class>
- <class>org.onap.policy.apex.domains.vpn.concepts.VPNCustomer</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.Autmer</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNCustooLearn</class>
<class>org.onap.policy.apex.domains.vpn.concepts.VPNLink</class>
<class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
- <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.target-database" value="${database.target-database}" />
+ <property name="javax.persistence.jdbc.driver" value="${database.jdbc.driver}" />
+ <property name="javax.persistence.jdbc.url" value="${database.jdbc.url}" />
+ <property name="javax.persistence.jdbc.user" value="${database.jdbc.user}" />
+ <property name="javax.persistence.jdbc.password" value="${database.jdbc.password}" />
<property name="eclipselink.ddl-generation" value="create-or-extend-tables" />
<property name="eclipselink.logging.level" value="INFO" />
@@ -123,11 +123,11 @@
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
- <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.target-database" value="${database.target-database}" />
+ <property name="javax.persistence.jdbc.driver" value="${database.jdbc.driver}" />
+ <property name="javax.persistence.jdbc.url" value="${database.jdbc.url}" />
+ <property name="javax.persistence.jdbc.user" value="${database.jdbc.user}" />
+ <property name="javax.persistence.jdbc.password" value="${database.jdbc.password}" />
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<property name="eclipselink.logging.level" value="INFO" />
@@ -178,13 +178,13 @@
<class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
<properties>
- <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.target-database" value="${database.target-database}" />
+ <property name="javax.persistence.jdbc.driver" value="${database.jdbc.driver}" />
+ <property name="javax.persistence.jdbc.url" value="${database.jdbc.url}" />
+ <property name="javax.persistence.jdbc.user" value="${database.jdbc.user}" />
+ <property name="javax.persistence.jdbc.password" value="${database.jdbc.password}" />
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" />
+ <property name="hibernate.dialect" value="${database.dialect}" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.connection.provider_class"
value="org.hibernate.connection.C3P0ConnectionProvider" />
@@ -241,12 +241,12 @@
<class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
<properties>
- <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="eclipselink.target-database" value="${database.target-database}" />
+ <property name="javax.persistence.jdbc.driver" value="${database.jdbc.driver}" />
+ <property name="javax.persistence.jdbc.url" value="${database.jdbc.url}" />
+ <property name="javax.persistence.jdbc.user" value="${database.jdbc.user}" />
+ <property name="javax.persistence.jdbc.password" value="${database.jdbc.password}" />
+ <property name="hibernate.dialect" value="${database.dialect}" />
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.connection.provider_class"
value="org.hibernate.connection.C3P0ConnectionProvider" />
diff --git a/packages/apex-pdp-package-full/src/main/resources/properties/db.properties b/packages/apex-pdp-package-full/src/main/resources/properties/db.properties
new file mode 100644
index 000000000..db536d65e
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/properties/db.properties
@@ -0,0 +1,6 @@
+database.target-database=MySQL
+database.jdbc.driver=org.mariadb.jdbc.Driver
+database.jdbc.url=jdbc:mariadb://localhost:5432/apex
+database.jdbc.user=policy
+database.jdbc.password=P01icY
+database.dialect=org.hibernate.dialect.MySQL5Dialect \ No newline at end of file