blob: 51ec16134a4494573e71cfdf65f826948080aa58 [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 policy-persistence
5 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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 ============LICENSE_END=========================================================
20 -->
21
22<persistence version="2.1"
23 xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
25
26 <persistence-unit name="junitDroolsPU" transaction-type="RESOURCE_LOCAL">
27 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
28 <class>org.openecomp.policy.drools.persistence.DroolsPdpEntity</class>
29 <class>org.openecomp.policy.drools.persistence.DroolsSessionEntity</class>
30 <class>org.openecomp.policy.drools.persistence.LastSiteEntity</class>
31 <class>org.drools.persistence.info.SessionInfo</class>
32 <class>org.drools.persistence.info.WorkItemInfo</class>
33 <class>org.openecomp.policy.common.ia.jpa.IntegrityAuditEntity</class>
34 <properties>
35 <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
36 <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/>
37 <property name="javax.persistence.schema-generation.scripts.create-target" value="./sql/generatedCreateDrools.ddl"/>
38 <property name="javax.persistence.schema-generation.scripts.drop-target" value="./sql/generatedDropDrools.ddl"/>
39 </properties>
40 </persistence-unit>
41
42 <persistence-unit name="junitXacmlPU" transaction-type="RESOURCE_LOCAL">
43 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
44 <class>org.openecomp.policy.common.im.jpa.StateManagementEntity</class>
45 <class>org.openecomp.policy.common.im.jpa.ForwardProgressEntity</class>
46 <class>org.openecomp.policy.common.im.jpa.ResourceRegistrationEntity</class>
47 <class>org.openecomp.policy.common.ia.jpa.IntegrityAuditEntity</class>
48 <properties>
49 <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
50 <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/>
51 <property name="javax.persistence.schema-generation.scripts.create-target" value="./sql/generatedCreateXacml.ddl"/>
52 <property name="javax.persistence.schema-generation.scripts.drop-target" value="./sql/generatedDropXacml.ddl"/>
53 </properties>
54 </persistence-unit>
55
56</persistence>