Added additional integration test provided by Fabio Heer
[hibernate4-maven-plugin] / src / it / multimodule / ejb / src / main / resources / META-INF / persistence.xml
diff --git a/src/it/multimodule/ejb/src/main/resources/META-INF/persistence.xml b/src/it/multimodule/ejb/src/main/resources/META-INF/persistence.xml
new file mode 100644 (file)
index 0000000..a5aa804
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
+                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
+                        version="2.1">
+       <persistence-unit name="ebeguPersistenceUnit" transaction-type="JTA">
+               <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
+               <jta-data-source>java:/jdbc/hmp</jta-data-source>
+               <mapping-file>META-INF/orm.xml</mapping-file>
+               <!--<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>-->
+
+               <properties>
+                       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
+                       <property name="hibernate.physical_naming_strategy" value="ch.dvbern.demo.persistence.DemoPhysicalNamingStrategyImpl"/>
+
+                       <!-- SQL Logging bitte via Logger konfigurieren -->
+                       <property name="hibernate.show_sql" value="true"/>
+
+               </properties>
+       </persistence-unit>
+</persistence>