关于cascade

好几天这个东西一直困扰我。前两天没怎么要求我就回避了这个问题,
数据库中作为BidUser对象的一些垃圾数据就没作清楚,今天这个问题必须解决了。
为什么我在解除了BidUser对象与其他对象得关联以后作删除操作还是会出现有关casecade的错误?今天找了几篇文章讲casecade和inverse属性的,其实都大同小异,(不乏转载的)。问题还没解决,等问题解决以后我也来谈谈自己的心得!
如下是删除动作得异常信息:
javax.servlet.ServletException: deleted object would be re-saved by cascade (remove deleted object from associations): [bidauction.domain.BidUser#4423]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [bidauction.domain.BidUser#4423]

你可能感兴趣的:(Hibernate,servlet)