aabe0f1f949860b87adaaf35116feaf112d50d07
[policy/api.git] / main / src / main / resources / META-INF / persistence.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4    Copyright (C) 2019-2020 Nordix Foundation.
5    Modifications Copyright (C) 2021 AT&T Intellectual Property.
6    Modification Copyright 2022 Nordix Foundation.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19
20   SPDX-License-Identifier: Apache-2.0
21   ============LICENSE_END=========================================================
22 -->
23
24 <persistence
25     xmlns="http://java.sun.com/xml/ns/persistence"
26     version="2.0">
27     <persistence-unit
28         name="PolicyDb"
29         transaction-type="RESOURCE_LOCAL">
30         <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
31
32         <class>org.onap.policy.models.base.PfConceptKey</class>
33         <class>org.onap.policy.models.dao.converters.CDataConditioner</class>
34         <class>org.onap.policy.models.dao.converters.Uuid2String</class>
35         <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdp</class>
36         <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpGroup</class>
37         <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpPolicyStatus</class>
38         <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpStatistics</class>
39         <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpSubGroup</class>
40         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaCapabilityAssignment</class>
41         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaCapabilityAssignments</class>
42         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaCapabilityType</class>
43         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaCapabilityTypes</class>
44         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaDataType</class>
45         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaDataTypes</class>
46         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaNodeTemplate</class>
47         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaNodeTemplates</class>
48         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaNodeType</class>
49         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaNodeTypes</class>
50         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaParameter</class>
51         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicies</class>
52         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicy</class>
53         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicyType</class>
54         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicyTypes</class>
55         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaProperty</class>
56         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaRelationshipType</class>
57         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaRelationshipTypes</class>
58         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaRequirement</class>
59         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaRequirements</class>
60         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaServiceTemplate</class>
61         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaTopologyTemplate</class>
62         <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaTrigger</class>
63
64         <properties>
65             <property name="javax.persistence.schema-generation.database.action" value="none" />
66             <property name="eclipselink.ddl-generation" value="none" />
67             <property name="eclipselink.logging.level" value="WARNING" />
68         </properties>
69     </persistence-unit>
70 </persistence>