| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| /********************************************************************************
|
| * Copyright (c) 2015-2018 Contributors to the Eclipse Foundation
|
| *
|
| * See the NOTICE file(s) distributed with this work for additional
|
| * information regarding copyright ownership.
|
| *
|
| * This program and the accompanying materials are made available under the
|
| * terms of the Eclipse Public License v. 2.0 which is available at
|
| * http://www.eclipse.org/legal/epl-2.0.
|
| *
|
| * SPDX-License-Identifier: EPL-2.0
|
| *
|
| ********************************************************************************/
|
| |
| --> |
| <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" |
| version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"> |
| <persistence-unit name="preferenceTest" transaction-type="RESOURCE_LOCAL"> |
| |
| <class>org.eclipse.mdm.preferences.entity.Preference</class> |
| |
| <properties> |
| <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver" /> |
| <property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:myDB;create=true" /> |
| <property name="javax.persistence.jdbc.user" value="EclipseJPAExample" /> |
| <property name="javax.persistence.jdbc.password" value="EclipseJPAExample" /> |
| |
| <!-- EclipseLink should create the database schema automatically --> |
| <property name="eclipselink.ddl-generation" value="create-tables" /> |
| <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| |
| <property name="eclipselink.logging.level.sql" value="FINER" /> |
| <property name="eclipselink.logging.parameters" value="true" /> |
| </properties> |
| |
| </persistence-unit> |
| </persistence> |