試せば良いだけだと思いますが、そこまで時間が無いので質問させて頂きます。m(_ _)m
概要
下記のように別のクラスのメソッドを呼び出すにあたり、Transactionがネストされてしまう場合の挙動はどのようになるのかご存知でしたらお教えいただければと思います。
TransactionManagerがシングルトンなので...どうなるのかなと思いました。
public class Example1{ public void update(){ TransactionManager tm = AppConfig.singleton().getTransactionManager(); tm.required(() -> { new Example2.update(); }); } } public class Example2{ public void update(){ TransactionManager tm = AppConfig.singleton().getTransactionManager(); tm.required(() -> { // ~~何かの更新処理 }); } }
あなたの回答
tips
プレビュー