g*****g 发帖数: 34805 | 1 The thing is that under some circumstance, I have to delete a user and
recreate a user with same email, and at the same time the email has unique
constraint. In a hibernate session, I can flush after deletion and before
creation, but how to do it in Spring service layer with declarative
transactions?
Specify the delete function with PROPOGATION_REQURIED_NEW ? | g*****g 发帖数: 34805 | 2 guess it doesn't matter, I made a flush in DAO and it's working fine. | A**o 发帖数: 1550 | 3 i just did the same with ibatis. :)
【在 g*****g 的大作中提到】 : guess it doesn't matter, I made a flush in DAO and it's working fine.
|
|