org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

Could not execute JDBC batch update

这个是不能执行批量更新,看看配置文件里 batch-size 属性有没有设置

 

Cannot add or update a child row: a foreign key constraint fails、

这个是由于更新数据,违反了外键约束

版权声明:本文为博主原创文章,未经博主允许不得转载。

posted @ 2012-02-21 11:22  wangicter的博客  阅读(1101)  评论(0编辑  收藏  举报