Consolidate PolicyRestAdapter setup
[policy/engine.git] / PolicyEngineUtils / src / test / resources / META-INF / persistencePUtest.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   PolicyEngineUtils
5   ================================================================================
6   Copyright (C) 2017, 2019 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"
24     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
26     <persistence-unit name="PolicyEngineUtils"
27         transaction-type="RESOURCE_LOCAL">
28         <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
29         <class>org.onap.policy.jpa.BackUpMonitorEntity</class>
30         <property
31             name="javax.persistence.schema-generation.scripts.action"
32             value="drop-and-create" />
33         <property
34             name="javax.persistence.schema-generation.scripts.create-target"
35             value="./src/test/resources/META-INF/generatedCreate.ddl" />
36         <property
37             name="javax.persistence.schema-generation.scripts.drop-target"
38             value="./src/test/resources/META-INF/generatedDrop.ddl" />
39         <property
40             name="javax.persistence.schema-generation.database.action"
41             value="drop-and-create" />
42         <property
43             name="javax.persistence.schema-generation.create-source"
44             value="metadata-then-script" />
45         <property
46             name="javax.persistence.schema-generation.drop-source"
47             value="script" />
48         <property
49             name="javax.persistence.schema-generation.drop-script-source"
50             value="META-INF/drop.ddl" />
51     </persistence-unit>
52 </persistence>