| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| /******************************************************************************* |
| * Copyright (c) 2017 Peak Solution GmbH |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Matthias Koller - initial implementation |
| *******************************************************************************/ |
| --> |
| <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> |