解决hibernate 删除异常: deleted object would be re-saved by cascade (remove deleted ob
在hibernate删除关联时会出现deletedobjectwouldbere-savedbycascade(removedeletedobjectfromassociations)的异常,现在网络上解决这个问题的,无非以下这几种方法1删除Set方的cascade:(缺点:子对象和父对象不能进行级联更新,没意义)方法2解决关联关系后,再删除 onside.getManys().remove(