我正在使用 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