由于Function1是事务性的,插入record1后,就被锁定了。 因此我无法从 function3 更新 record1。 有什么解决办法吗?
@Transactional
function1(){
function2();
function3();
}
function2(){
//insert into table1 values(); --record1
}
@Transactional
function3(){
//update record1 inserted in function2
}