在用ssh做删除客户的同时删除联系人的时候会遇见这种异常: HTTP Status 500 - could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute
在hibernate 删除关联时会出现eleted object would be re-saved by cascade (remove deleted object from associations)的异常,结合别人的和自己的经验通常有三种解决的方案: 方法1 删除Set方的cascade: 方法2 解决关联关系后,再删除 onside.getManys().remove(this