我有下一个问题。如果我们有这样的架构和适当的Spring anootation:
method_parent() { - starts new transaction and after return commit
method_child_1() {} - starts its own new transaction and after return commit
(A)
method_child_2() {} - starts int own new transaction and after return commit
}
点(A) method_parent 会抛出异常并停止执行,结果数据库状态会是什么?我的意思是,即使提交了自己的事务, method_child_1 是否会被提交或回滚到初始状态?