org.springframework.dao.DataIntegrityViolationException: could not delete: [com.osiit.prgName.moduleName.bean.Bumen#ff80808132146106013214632e0a0001]; nested exception is org.hibernate.exception.ConstraintViolationException: could not delete: [com.osiit.prgName.moduleName.bean.Bumen#ff80808132146106013214632e0a0001]
这个是dao
public void delete(Bumen persistentInstance) {
log.debug("deleting Bumen instance");
try {
getHibernateTemplate().delete(persistentInstance);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
这个是配置文件
多对一的
一对多的
这个问题怎么解决呀,。烦死了