Save to two tables in one method

前端 未结 0 578
野性不改
野性不改 2020-12-18 03:22

How can I safely save data to two tables in one method? I insert into one table and update to the other. @Transactional is enough?

Like this:

@Transact         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题