質問編集履歴
1
一部設定を追記します。
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,4 +14,23 @@
|
|
14
14
|
問題となるメソッドの@Transactionalを無効にしたい。()
|
15
15
|
か、ほかのソリューションがあるのか?
|
16
16
|
|
17
|
-
以上、よろしくお願いします。
|
17
|
+
以上、よろしくお願いします。
|
18
|
+
|
19
|
+
|
20
|
+
追記:
|
21
|
+
|
22
|
+
|
23
|
+
@RunWith(SpringJUnit4ClassRunner.class)
|
24
|
+
@TransactionConfiguration(defaultRollback = true)
|
25
|
+
@Transactional
|
26
|
+
public abstract class xxxCase { }
|
27
|
+
|
28
|
+
|
29
|
+
<!-- トランザクション設定 -->
|
30
|
+
<tx:annotation-driven />
|
31
|
+
<tx:annotation-driven transaction-manager="transactionManagerSlv"/>
|
32
|
+
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
33
|
+
<property name="sessionFactory">
|
34
|
+
<ref local="sessionFactoryMst"/>
|
35
|
+
</property>
|
36
|
+
</bean>
|