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> |
| 29 | <class>org.onap.policy.models.tosca.simple.concepts.ToscaPolicy</class> |
| 30 | |
| 31 | <properties> |
| 32 | <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" /> |
| 33 | <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:testdb" /> |
| 34 | <property name="javax.persistence.jdbc.user" value="policy" /> |
| 35 | <property name="javax.persistence.jdbc.password" value="P01icY" /> |
| 36 | <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> |
| 37 | <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| 38 | <property name="eclipselink.logging.level" value="INFO" /> |
| 39 | </properties> |
| 40 | </persistence-unit> |
| 41 | |
| 42 | <persistence-unit name="ToscaConceptMariaDBTest" transaction-type="RESOURCE_LOCAL"> |
| 43 | <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| 44 | |
| 45 | <class>org.onap.policy.models.dao.converters.CDataConditioner</class> |
| 46 | <class>org.onap.policy.models.dao.converters.Uuid2String</class> |
| 47 | <class>org.onap.policy.models.base.PfConceptKey</class> |
| 48 | <class>org.onap.policy.models.tosca.simple.concepts.ToscaPolicy</class> |
| 49 | |
| 50 | <properties> |
| 51 | <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" /> |
| 52 | <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost:3306/policy" /> |
| 53 | <property name="javax.persistence.jdbc.user" value="policy" /> |
| 54 | <property name="javax.persistence.jdbc.password" value="P01icY" /> |
| 55 | <property name="javax.persistence.schema-generation.database.action" value="create" /> |
| 56 | |
| 57 | <!-- property name="eclipselink.logging.level" value="ALL" /> |
| 58 | <property name="eclipselink.logging.level.jpa" value="ALL" /> |
| 59 | <property name="eclipselink.logging.level.ddl" value="ALL" /> |
| 60 | <property name="eclipselink.logging.level.connection" value="ALL" /> |
| 61 | <property name="eclipselink.logging.level.sql" value="ALL" /> |
| 62 | <property name="eclipselink.logging.level.transaction" value="ALL" /> |
| 63 | <property name="eclipselink.logging.level.sequencing" value="ALL" /> |
| 64 | <property name="eclipselink.logging.level.server" value="ALL" /> |
| 65 | <property name="eclipselink.logging.level.query" value="ALL" /> |
| 66 | <property name="eclipselink.logging.level.properties" value="ALL" /--> |
| 67 | |
| 68 | <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> |
| 69 | <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| 70 | <property name="eclipselink.logging.level" value="INFO" /> |
| 71 | </properties> |
| 72 | </persistence-unit> |
| 73 | </persistence> |