Added tutorials of the hibernate-release 5.2.18.Final
[hibernate4-maven-plugin] / src / it / tutorials-4.3.9 / osgi / unmanaged-jpa / src / main / resources / META-INF / persistence.xml
diff --git a/src/it/tutorials-4.3.9/osgi/unmanaged-jpa/src/main/resources/META-INF/persistence.xml b/src/it/tutorials-4.3.9/osgi/unmanaged-jpa/src/main/resources/META-INF/persistence.xml
new file mode 100644 (file)
index 0000000..0483f5c
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    version="1.0">
+    <persistence-unit name="unmanaged-jpa">
+        <class>org.hibernate.osgitest.entity.DataPoint</class>
+        <exclude-unlisted-classes>true</exclude-unlisted-classes>
+        
+        <properties>
+            <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
+            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+            <property name="hibernate.connection.url" value="jdbc:h2:mem:db_unmanaged_jpa;DB_CLOSE_DELAY=-1;MVCC=TRUE"/>
+            <property name="hibernate.connection.username" value="sa"/>
+            <property name="hibernate.connection.password" value=""/>
+            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+        </properties>
+    </persistence-unit>
+</persistence>