All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.spring.beans.test-transaction-beans.xml Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
<?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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy