Added integration-test provided by Erik-Berndt Scheper <erik.berndt.scheper@gmail...
[hibernate4-maven-plugin] / src / it / hibernate4-maven-plugin-envers-sample / src / main / resources / spring-persistence-context.xml
diff --git a/src/it/hibernate4-maven-plugin-envers-sample/src/main/resources/spring-persistence-context.xml b/src/it/hibernate4-maven-plugin-envers-sample/src/main/resources/spring-persistence-context.xml
new file mode 100644 (file)
index 0000000..78f8111
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:context="http://www.springframework.org/schema/context"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xmlns:tx="http://www.springframework.org/schema/tx"
+
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
+       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
+       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd">
+
+
+    <context:property-placeholder order="10"
+                                  location="classpath:spring-persistence-context.properties"
+                                  ignore-resource-not-found="false"/>
+
+    <tx:annotation-driven transaction-manager="transactionManager"/>
+
+
+    <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
+
+
+    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
+          p:persistenceUnitName="${jpa.persistence.context.name}"
+          p:persistenceXmlLocation="classpath:META-INF/persistence-jpa.xml"
+          p:dataSource-ref="dataSource"
+            >
+
+        <property name="jpaVendorAdapter">
+            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"/>
+        </property>
+        <property name="jpaProperties">
+            <props>
+                <prop key="hibernate.dialect">${hibernate.dialect:org.hibernate.dialect.Oracle10gDialect}</prop>
+                <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto:validate}</prop>
+                <prop key="hibernate.show_sql">${hibernate.show_sql:false}</prop>
+                <prop key="hibernate.format_sql">${hibernate.format_sql:false}</prop>
+                <!--<prop key="hibernate.transaction.flush_before_completion">${hibernate.transaction.flush_before_completion}</prop>-->
+                <!--<prop key="hibernate.transaction.jta.platform">${hibernate.transaction.jta.platform}</prop>-->
+                <prop key="hibernate.transaction.manager_lookup_class">${hibernate.transaction.manager_lookup_class:org.hibernate.transaction.WebSphereExtendedJTATransactionLookup}</prop>
+                <!--<prop key="hibernate.transaction.factory_class">${hibernate.transaction.factory_class}</prop>-->
+            </props>
+        </property>
+    </bean>
+
+
+</beans>