问题
I have an entity
@Entity
@Table(name = "[Usermaster]")
@SQLDelete(sql = "UPDATE Usermaster SET isDeleted = 1")
@Where(clause = "isDeleted = 0")
public class User {
//...
}
Now when I delete some Entity it actually will set deleteFlag = 1 How can I restore the entity?
thanks
来源:https://stackoverflow.com/questions/24656518/hibernate-restore-soft-deleted-entity