How to discard changes in hibernate/JPA after Exception occur?

后端 未结 0 533
猫巷女王i
猫巷女王i 2021-01-25 10:55

how can I discard changes after Exception? I want to save recordB even when recordA failed to save.

@Transactional
void updateRecord{
    Record recordA = reposit         


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