blob: 23e8567f1056030743d0e4a054b3c1fd8f069492 [file] [log] [blame]
liamfallon8fc237c2019-03-20 16:08:21 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 Copyright (C) 2019 Nordix Foundation.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21
22<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
23 <persistence-unit name="ToscaConceptTest" transaction-type="RESOURCE_LOCAL">
24 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
25
26 <class>org.onap.policy.models.dao.converters.CDataConditioner</class>
27 <class>org.onap.policy.models.dao.converters.Uuid2String</class>
28 <class>org.onap.policy.models.base.PfConceptKey</class>
liamfalloncc5b96b2019-03-29 10:31:22 +000029 <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicyType</class>
30 <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicy</class>
liamfallon8fc237c2019-03-20 16:08:21 +000031
32 <properties>
33 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
34 <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:testdb" />
35 <property name="javax.persistence.jdbc.user" value="policy" />
36 <property name="javax.persistence.jdbc.password" value="P01icY" />
37 <property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
38 <property name="eclipselink.ddl-generation.output-mode" value="database" />
39 <property name="eclipselink.logging.level" value="INFO" />
40 </properties>
41 </persistence-unit>
42
43 <persistence-unit name="ToscaConceptMariaDBTest" transaction-type="RESOURCE_LOCAL">
44 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
45
46 <class>org.onap.policy.models.dao.converters.CDataConditioner</class>
47 <class>org.onap.policy.models.dao.converters.Uuid2String</class>
48 <class>org.onap.policy.models.base.PfConceptKey</class>
liamfalloncc5b96b2019-03-29 10:31:22 +000049 <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicy</class>
liamfallon8fc237c2019-03-20 16:08:21 +000050
51 <properties>
52 <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" />
53 <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:3306/policy" />
54 <property name="javax.persistence.jdbc.user" value="policy" />
55 <property name="javax.persistence.jdbc.password" value="P01icY" />
56 <property name="javax.persistence.schema-generation.database.action" value="create" />
57
58 <!-- property name="eclipselink.logging.level" value="ALL" />
59 <property name="eclipselink.logging.level.jpa" value="ALL" />
60 <property name="eclipselink.logging.level.ddl" value="ALL" />
61 <property name="eclipselink.logging.level.connection" value="ALL" />
62 <property name="eclipselink.logging.level.sql" value="ALL" />
63 <property name="eclipselink.logging.level.transaction" value="ALL" />
64 <property name="eclipselink.logging.level.sequencing" value="ALL" />
65 <property name="eclipselink.logging.level.server" value="ALL" />
66 <property name="eclipselink.logging.level.query" value="ALL" />
67 <property name="eclipselink.logging.level.properties" value="ALL" /-->
68
69 <property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
70 <property name="eclipselink.ddl-generation.output-mode" value="database" />
71 <property name="eclipselink.logging.level" value="INFO" />
72 </properties>
73 </persistence-unit>
74</persistence>