DATAJPA-653 - Workaround in tests for regression in Spring 4.1.3.

Spring 4.1.3 introduces a regression in the way transaction managers are detected if multiple ones are available. This can be worked around my marking the default transaction manager as primary which is what we do for our tests now.

Related issue: SPR-12577.
This commit is contained in:
Oliver Gierke
2015-01-04 17:19:08 +01:00
parent 108c414244
commit 1b03b6dcf3

View File

@@ -31,7 +31,7 @@
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" primary="true">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>