Added tutorials of the hibernate-release 5.1.17.Final
[hibernate4-maven-plugin] / src / it / tutorials-5.1.17 / osgi / managed-jpa / src / main / resources / META-INF / persistence.xml
diff --git a/src/it/tutorials-5.1.17/osgi/managed-jpa/src/main/resources/META-INF/persistence.xml b/src/it/tutorials-5.1.17/osgi/managed-jpa/src/main/resources/META-INF/persistence.xml
new file mode 100644 (file)
index 0000000..77555cb
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Hibernate, Relational Persistence for Idiomatic Java
+  ~
+  ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
+  ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
+  -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    version="1.0">
+    <persistence-unit name="managed-jpa" transaction-type="JTA">
+        <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/h2ds)</jta-data-source>
+        
+        <properties>
+            <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
+            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+            <property name="hibernate.archive.autodetection" value="class"/>
+        </properties>
+    </persistence-unit>
+</persistence>
\ No newline at end of file