【发布时间】:2013-11-14 07:54:48
【问题描述】:
我正在使用 spring MVC 和休眠框架。我有 2 个表。它们是 Team 和 Releases。它有一个一对多的映射。我可以从 Releases 中删除重新编码,但是当我从 Team 中删除时,它给出以下错误
HTTP Status 500 - Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException:
Could not execute JDBC batch update; SQL [delete from Teams where teamID=?];
constraint [null];
nested exception is org.hibernate.exception.ConstraintViolationException:
Could not execute JDBC batch update
【问题讨论】:
标签: java sql spring hibernate model-view-controller