blob: b4313271e22652799881b2168cd85ba9a6b22848 [file] [log] [blame]
uj426b157f52b2017-09-21 16:27:41 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 ONAP-PAP-REST
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<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
22 <persistence-unit name="XACML-PAP-REST">
23 <class>org.onap.policy.rest.jpa.PolicyEntity</class>
24 <class>org.onap.policy.rest.jpa.ConfigurationDataEntity</class>
25 <class>org.onap.policy.rest.jpa.PolicyDBDaoEntity</class>
26 <class>org.onap.policy.rest.jpa.GroupEntity</class>
27 <class>org.onap.policy.rest.jpa.PdpEntity</class>
28 <class>org.onap.policy.rest.jpa.ActionBodyEntity</class>
29 <class>org.onap.policy.rest.jpa.DatabaseLockEntity</class>
30 <class>org.onap.policy.rest.jpa.PolicyVersion</class>
31 <class>org.onap.policy.rest.jpa.PolicyScore</class>
32 <class>org.onap.policy.rest.jpa.FunctionDefinition</class>
33 <class>org.onap.policy.rest.jpa.Attribute</class>
34 <class>org.onap.policy.rest.jpa.Category</class>
35 <class>org.onap.policy.rest.jpa.ConstraintType</class>
36 <class>org.onap.policy.rest.jpa.ConstraintValue</class>
37 <class>org.onap.policy.rest.jpa.Datatype</class>
38 <class>org.onap.policy.rest.jpa.FunctionArgument</class>
39 <class>org.onap.policy.rest.jpa.UserInfo</class>
40 <class>org.onap.policy.rest.jpa.ActionPolicyDict</class>
41 <class>org.onap.policy.rest.jpa.DecisionSettings</class>
42 <class>org.onap.policy.rest.jpa.MicroServiceModels</class>
Jim Hahn2ee068f2019-11-11 14:32:15 -050043 <class>org.onap.policy.rest.jpa.BrmsParamTemplate</class>
uj426b157f52b2017-09-21 16:27:41 -040044 <class>org.onap.policy.rest.jpa.PolicyEditorScopes</class>
45 <!-- unique to PolicyEngineUtils - will be audited from PAP -->
46 <class>org.onap.policy.jpa.BackUpMonitorEntity</class>
47 <!-- unique to integrity-monitor - will be audited from PAP -->
48 <class>org.onap.policy.common.im.jpa.StateManagementEntity</class>
49 <class>org.onap.policy.common.im.jpa.ForwardProgressEntity</class>
50 <class>org.onap.policy.common.im.jpa.ResourceRegistrationEntity</class>
51 <!-- unique to integrity-audit - will be audited from PAP -->
52 <class>org.onap.policy.common.ia.jpa.IntegrityAuditEntity</class>
53 <exclude-unlisted-classes>false</exclude-unlisted-classes>
54 <shared-cache-mode>NONE</shared-cache-mode>
55 <properties>
56 <!-- The properties defined below are the default settings to be used when someone initially
57 wants to start working with the XACML-PAP-ADMIN web gui. They are not intended for production
58 use.
59
60 They are setup to drop and create the tables and then load an initial set of data into the database
61 every time the application is deployed. So if you add anything to the dictionaries or PIP
62 configuration, they will get lost upon each deployment. It uses an H2 database engine configured
63 for a local file so you don't have to setup you're own SQL database environment to start.
64
65 Instead of modifying this file directly, please refer to the xacml.admin.properties file for
66 customizing the application settings.
67
68 -->
69 <!-- <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
70 <property name="javax.persistence.schema-generation.create-source" value="metadata-then-script"/>
71 <property name="javax.persistence.schema-generation.create-script-source" value="META-INF/views.sql" />
72 <property name="javax.persistence.schema-generation.drop-source" value="script"/>
73 <property name="javax.persistence.schema-generation.drop-script-source" value="META-INF/drop.sql" />
74 <property name="javax.persistence.sql-load-script-source" value="META-INF/data.sql" />-->
75
76
77
78 <!-- These properties should be set in the xacml.admin.properties file, so they can be re-used by non-JPA
79 database functionality. -->
80 <!--
81 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
82 <property name="javax.persistence.jdbc.url" value="jdbc:h2:file:sql/xacml"/>
83 <property name="javax.persistence.jdbc.user" value="sa"/>
84 <property name="javax.persistence.jdbc.password" value=""/>
85 -->
86 </properties>
87 </persistence-unit>
88
89<persistence-unit name="auditPapPU">
90 <!-- This is the persistence unit used by IntegrityAudit to determine
91 which classes to audit. All the PAP classes are also included in
92 XACML-PAP-ADMIN, so they will be audited there rather than having a
93 duplicate audit run from the XACL-PAP-REST node -->
94 <!-- unique to PolicyEngineUtils - will be audited from PAP -->
95 <class>org.onap.policy.jpa.BackUpMonitorEntity</class>
96 <!-- unique to integrity-monitor - will be audited from PAP -->
97 <class>org.onap.policy.common.im.jpa.StateManagementEntity</class>
98 <class>org.onap.policy.common.im.jpa.ForwardProgressEntity</class>
99 <class>org.onap.policy.common.im.jpa.ResourceRegistrationEntity</class>
100 <!-- unique to integrity-audit - will be audited from PAP -->
101 <class>org.onap.policy.common.ia.jpa.IntegrityAuditEntity</class>
102 <exclude-unlisted-classes>true</exclude-unlisted-classes>
103 <shared-cache-mode>NONE</shared-cache-mode>
104 </persistence-unit>
105
106 <persistence-unit name="testPdpPU" transaction-type="RESOURCE_LOCAL">
107 <!-- This tests all the classes that will be audited in the XACML-PAP-REST and the XACML-PAP_ADMIN -->
108 <!-- XACML-PAP-REST -->
109 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
110 <class>org.onap.policy.rest.jpa.PolicyEntity</class>
111 <class>org.onap.policy.rest.jpa.ConfigurationDataEntity</class>
112 <class>org.onap.policy.rest.jpa.PolicyDBDaoEntity</class>
113 <class>org.onap.policy.rest.jpa.GroupEntity</class>
114 <class>org.onap.policy.rest.jpa.PdpEntity</class>
115 <class>org.onap.policy.rest.jpa.ActionBodyEntity</class>
116 <class>org.onap.policy.rest.jpa.DatabaseLockEntity</class>
117 <class>org.onap.policy.rest.jpa.PolicyVersion</class>
118 <class>org.onap.policy.rest.jpa.PolicyScore</class>
119 <class>org.onap.policy.rest.jpa.FunctionDefinition</class>
120 <class>org.onap.policy.rest.jpa.Attribute</class>
121 <class>org.onap.policy.rest.jpa.Category</class>
122 <class>org.onap.policy.rest.jpa.ConstraintType</class>
123 <class>org.onap.policy.rest.jpa.ConstraintValue</class>
124 <class>org.onap.policy.rest.jpa.Datatype</class>
125 <class>org.onap.policy.rest.jpa.FunctionArgument</class>
126 <class>org.onap.policy.rest.jpa.UserInfo</class>
127 <class>org.onap.policy.rest.jpa.ActionPolicyDict</class>
128 <class>org.onap.policy.rest.jpa.DecisionSettings</class>
129 <class>org.onap.policy.rest.jpa.MicroServiceModels</class>
130 <!-- unique to XACML-PAP-ADMIN -->
131 <class>org.onap.policy.rest.jpa.ActionList</class>
132 <class>org.onap.policy.rest.jpa.AddressGroup</class>
133 <class>org.onap.policy.rest.jpa.AttributeAssignment</class>
Jim Hahn2ee068f2019-11-11 14:32:15 -0500134 <class>org.onap.policy.rest.jpa.BrmsParamTemplate</class>
uj426b157f52b2017-09-21 16:27:41 -0400135 <class>org.onap.policy.rest.jpa.ClosedLoopD2Services</class>
136 <class>org.onap.policy.rest.jpa.ClosedLoopSite</class>
Jim Hahn2ee068f2019-11-11 14:32:15 -0500137 <class>org.onap.policy.rest.jpa.DcaeUsers</class>
138 <class>org.onap.policy.rest.jpa.Dcaeuuid</class>
uj426b157f52b2017-09-21 16:27:41 -0400139 <class>org.onap.policy.rest.jpa.DescriptiveScope</class>
140 <class>org.onap.policy.rest.jpa.OnapName</class>
141 <class>org.onap.policy.rest.jpa.EnforcingType</class>
142 <class>org.onap.policy.rest.jpa.GlobalRoleSettings</class>
143 <class>org.onap.policy.rest.jpa.GroupPolicyScopeList</class>
144 <class>org.onap.policy.rest.jpa.GroupServiceList</class>
145 <class>org.onap.policy.rest.jpa.MicroServiceConfigName</class>
146 <class>org.onap.policy.rest.jpa.MicroServiceLocation</class>
147 <class>org.onap.policy.rest.jpa.Obadvice</class>
148 <class>org.onap.policy.rest.jpa.ObadviceExpression</class>
149 <class>org.onap.policy.rest.jpa.PEPOptions</class>
150 <class>org.onap.policy.rest.jpa.PIPConfigParam</class>
151 <class>org.onap.policy.rest.jpa.PIPConfiguration</class>
152 <class>org.onap.policy.rest.jpa.PIPResolver</class>
153 <class>org.onap.policy.rest.jpa.PIPResolverParam</class>
154 <class>org.onap.policy.rest.jpa.PIPType</class>
155 <class>org.onap.policy.rest.jpa.PolicyAlgorithms</class>
156 <class>org.onap.policy.rest.jpa.PolicyManagement</class>
157 <class>org.onap.policy.rest.jpa.PolicyScopeService</class>
158 <class>org.onap.policy.rest.jpa.PolicyScopeType</class>
159 <class>org.onap.policy.rest.jpa.PolicyScopeResource</class>
160 <class>org.onap.policy.rest.jpa.PolicyScopeClosedLoop</class>
161 <class>org.onap.policy.rest.jpa.PortList</class>
162 <class>org.onap.policy.rest.jpa.PREFIXLIST</class>
163 <class>org.onap.policy.rest.jpa.ProtocolList</class>
164 <class>org.onap.policy.rest.jpa.RemoteCatalogValues</class>
165 <class>org.onap.policy.rest.jpa.PolicyRoles</class>
166 <class>org.onap.policy.rest.jpa.RuleAlgorithms</class>
167 <class>org.onap.policy.rest.jpa.SecurityZone</class>
168 <class>org.onap.policy.rest.jpa.ServiceList</class>
169 <class>org.onap.policy.rest.jpa.SystemLogDB</class>
170 <class>org.onap.policy.rest.jpa.TermList</class>
171 <class>org.onap.policy.rest.jpa.VarbindDictionary</class>
172 <class>org.onap.policy.rest.jpa.VMType</class>
173 <class>org.onap.policy.rest.jpa.VNFType</class>
174 <class>org.onap.policy.rest.jpa.VSCLAction</class>
175 <class>org.onap.policy.rest.jpa.Zone</class>
176 <!-- unique to PolicyEngineUtils -->
177 <class>org.onap.policy.jpa.BackUpMonitorEntity</class>
178 <!-- unique to integrity-monitor -->
179 <class>org.onap.policy.common.im.jpa.StateManagementEntity</class>
180 <class>org.onap.policy.common.im.jpa.ForwardProgressEntity</class>
181 <class>org.onap.policy.common.im.jpa.ResourceRegistrationEntity</class>
182 <!-- unique to integrity-audit -->
183 <class>org.onap.policy.common.ia.jpa.IntegrityAuditEntity</class>
184
185 <exclude-unlisted-classes>false</exclude-unlisted-classes>
186 <shared-cache-mode>NONE</shared-cache-mode>
187 <properties>
188 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
189 <property name="javax.persistence.jdbc.url" value="jdbc:h2:file:./sql/xacmlTest"/> <!-- ;MODE=MySQL"/> -->
190 <property name="javax.persistence.jdbc.user" value="sa"/>
191 <property name="javax.persistence.jdbc.password" value=""/>
192 <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/>
193 <property name="javax.persistence.schema-generation.scripts.create-target" value="./src/test/resources/generatedCreate.ddl"/>
194 <property name="javax.persistence.schema-generation.scripts.drop-target" value="./src/test/resources/generatedDrop.ddl"/>
195 <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
196 <property name="javax.persistence.schema-generation.create-source" value="metadata-then-script"/>
197 <property name="javax.persistence.schema-generation.drop-source" value="script"/>
198 <property name="javax.persistence.schema-generation.drop-script-source" value="META-INF/drop.ddl" />
199 </properties>
200 </persistence-unit>
201</persistence>