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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user