Skip to content

Commit 1b03b6d

Browse files
committed
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.
1 parent 108c414 commit 1b03b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/resources/multiple-entity-manager-integration-context.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</property>
3232
</bean>
3333

34-
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
34+
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" primary="true">
3535
<property name="entityManagerFactory" ref="entityManagerFactory" />
3636
</bean>
3737

0 commit comments

Comments
 (0)