liamfallon | 8fc237c | 2019-03-20 16:08:21 +0000 | [diff] [blame] | 1 | <?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> |
liamfallon | cc5b96b | 2019-03-29 10:31:22 +0000 | [diff] [blame] | 29 | <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicyType</class> |
| 30 | <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicy</class> |
liamfallon | 8054d6d | 2019-04-02 23:32:32 +0000 | [diff] [blame^] | 31 | <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpGroup</class> |
| 32 | <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpSubGroup</class> |
| 33 | <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdp</class> |
liamfallon | 8fc237c | 2019-03-20 16:08:21 +0000 | [diff] [blame] | 34 | |
| 35 | <properties> |
| 36 | <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" /> |
| 37 | <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:testdb" /> |
| 38 | <property name="javax.persistence.jdbc.user" value="policy" /> |
| 39 | <property name="javax.persistence.jdbc.password" value="P01icY" /> |
| 40 | <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> |
| 41 | <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| 42 | <property name="eclipselink.logging.level" value="INFO" /> |
| 43 | </properties> |
| 44 | </persistence-unit> |
| 45 | |
| 46 | <persistence-unit name="ToscaConceptMariaDBTest" transaction-type="RESOURCE_LOCAL"> |
| 47 | <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| 48 | |
| 49 | <class>org.onap.policy.models.dao.converters.CDataConditioner</class> |
| 50 | <class>org.onap.policy.models.dao.converters.Uuid2String</class> |
| 51 | <class>org.onap.policy.models.base.PfConceptKey</class> |
liamfallon | 8054d6d | 2019-04-02 23:32:32 +0000 | [diff] [blame^] | 52 | <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicyType</class> |
liamfallon | cc5b96b | 2019-03-29 10:31:22 +0000 | [diff] [blame] | 53 | <class>org.onap.policy.models.tosca.simple.concepts.JpaToscaPolicy</class> |
liamfallon | 8054d6d | 2019-04-02 23:32:32 +0000 | [diff] [blame^] | 54 | <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpGroup</class> |
| 55 | <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdpSubGroup</class> |
| 56 | <class>org.onap.policy.models.pdp.persistence.concepts.JpaPdp</class> |
liamfallon | 8fc237c | 2019-03-20 16:08:21 +0000 | [diff] [blame] | 57 | |
| 58 | <properties> |
| 59 | <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" /> |
| 60 | <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:3306/policy" /> |
| 61 | <property name="javax.persistence.jdbc.user" value="policy" /> |
| 62 | <property name="javax.persistence.jdbc.password" value="P01icY" /> |
| 63 | <property name="javax.persistence.schema-generation.database.action" value="create" /> |
| 64 | |
| 65 | <!-- property name="eclipselink.logging.level" value="ALL" /> |
| 66 | <property name="eclipselink.logging.level.jpa" value="ALL" /> |
| 67 | <property name="eclipselink.logging.level.ddl" value="ALL" /> |
| 68 | <property name="eclipselink.logging.level.connection" value="ALL" /> |
| 69 | <property name="eclipselink.logging.level.sql" value="ALL" /> |
| 70 | <property name="eclipselink.logging.level.transaction" value="ALL" /> |
| 71 | <property name="eclipselink.logging.level.sequencing" value="ALL" /> |
| 72 | <property name="eclipselink.logging.level.server" value="ALL" /> |
| 73 | <property name="eclipselink.logging.level.query" value="ALL" /> |
| 74 | <property name="eclipselink.logging.level.properties" value="ALL" /--> |
| 75 | |
| 76 | <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> |
| 77 | <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| 78 | <property name="eclipselink.logging.level" value="INFO" /> |
| 79 | </properties> |
| 80 | </persistence-unit> |
| 81 | </persistence> |