diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2019-04-10 14:20:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-10 14:20:47 +0000 |
commit | bfb8d12818346b96c9ab918e72327e1d13662321 (patch) | |
tree | 1f55b2dd72d4629593d20fd3d3cee52db231c25b /applications/guard/src/main/resources/META-INF/persistence.xml | |
parent | ccb1828ec3e1a1c9071256f85f3876a8d1c8ecdf (diff) | |
parent | e034d785a227815f66138d1f83f49624c402aa97 (diff) |
Merge "Test decision from main entry"
Diffstat (limited to 'applications/guard/src/main/resources/META-INF/persistence.xml')
-rw-r--r-- | applications/guard/src/main/resources/META-INF/persistence.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/applications/guard/src/main/resources/META-INF/persistence.xml b/applications/guard/src/main/resources/META-INF/persistence.xml index 8d481a59..e01447e6 100644 --- a/applications/guard/src/main/resources/META-INF/persistence.xml +++ b/applications/guard/src/main/resources/META-INF/persistence.xml @@ -23,8 +23,15 @@ <persistence-unit name="OperationsHistoryPU" transaction-type="RESOURCE_LOCAL"> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> + <class>org.onap.policy.pdp.xacml.application.common.OnapOperationsHistoryDbao</class> <properties> - <property name="eclipselink.ddl-generation" value="create-tables" /> + <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" /> + <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://policydb:3306/policy" /> + <property name="javax.persistence.jdbc.user" value="policy_user" /> + <property name="javax.persistence.jdbc.password" value="policy_user" /> + <property name="javax.persistence.schema-generation.database.action" value="create" /> + <property name="eclipselink.ddl-generation" value="create-or-extend-tables" /> + <property name="eclipselink.ddl-generation.output-mode" value="database" /> <property name="eclipselink.logging.level" value="INFO" /> </properties> </persistence-unit> |