Configured the 5.1.17-tutorials as integration-tests for the plugin
[hibernate4-maven-plugin] / src / it / tutorials-5.1.17 / osgi / unmanaged-jpa / src / main / resources / META-INF / persistence.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Hibernate, Relational Persistence for Idiomatic Java
4   ~
5   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
6   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
7   -->
8 <persistence xmlns="http://java.sun.com/xml/ns/persistence"
9     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10     version="1.0">
11     <persistence-unit name="unmanaged-jpa">
12         <class>org.hibernate.osgitest.entity.DataPoint</class>
13         <exclude-unlisted-classes>true</exclude-unlisted-classes>
14         
15         <properties>
16             <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
17             <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
18             <property name="hibernate.connection.url" value="jdbc:h2:mem:db_unmanaged_jpa;DB_CLOSE_DELAY=-1;MVCC=TRUE"/>
19             <property name="hibernate.connection.username" value="sa"/>
20             <property name="hibernate.connection.password" value=""/>
21             <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
22         </properties>
23     </persistence-unit>
24 </persistence>