Added integration-test provided by Guido Wimmel <Wimmel.Guido@swm.de>
[hibernate4-maven-plugin] / src / it / schemaexport-example / schemaexport-example-persistence-impl / src / main / resources / META-INF / persistence.xml
diff --git a/src/it/schemaexport-example/schemaexport-example-persistence-impl/src/main/resources/META-INF/persistence.xml b/src/it/schemaexport-example/schemaexport-example-persistence-impl/src/main/resources/META-INF/persistence.xml
new file mode 100644 (file)
index 0000000..7578472
--- /dev/null
@@ -0,0 +1,18 @@
+<persistence version="1.0"\r
+       xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">\r
+       <persistence-unit name="swmtestappManagerTest">\r
+               <!-- in practice configured via Spring LocalContainerEntityManagerFactoryBean - packagesToScan -->\r
+               <class>de.test.schemaexport.domain.Department</class>\r
+               <class>de.test.schemaexport.domain.Employee</class>\r
+               <properties>\r
+                       <property name="hibernate.hbm2ddl.auto" value="create-drop" />\r
+                       <property name="hibernate.connection.username" value="sa" />\r
+                       <property name="hibernate.connection.password" value="" />\r
+                       <property name="hibernate.show_sql" value="true" />\r
+                       <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />\r
+                       <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />\r
+                       <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:test"/>\r
+               </properties>\r
+       </persistence-unit>\r
+</persistence>\r