META-INF.spring.beans.test-transaction-beans.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" default-lazy-init="true"> <import resource="classpath:META-INF/spring/beans/transaction-beans.xml"/> <!-- A TestEntityManager to use with Persistence Tests --> <bean id="testEntityManager" class="org.codegas.test.persistence.TestEntityManager"> <constructor-arg> <bean class="org.springframework.orm.jpa.support.SharedEntityManagerBean"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean> </constructor-arg> <constructor-arg ref="transactionTemplate"/> </bean> </beans>