hibernate保存报错:a different object with the same identifier value was already associated with the ses

来源:互联网 发布:ecowater 净水器 知乎 编辑:程序博客网 时间:2024/06/05 11:48

这两天被hibernate把session和事物交给spring来管理的问题弄得头晕眼花的,不过看了一下三篇文章后顿时头脑无比清醒了(水平有限,纯小白,各位看官请自行到对应的博文地址去好好细看,如有不理解的请务必同时结合三篇文章来好好理解)。

(一):Spring Hibernate OpenSessionInView学习 。    http://blog.csdn.net/hejunpurple/article/details/5105442

(二):老问题再论:a different object with the same identifier value was al 。     http://blog.sina.com.cn/s/blog_6151984a0100kgsz.html

(三):hibernate中session的三种状态。http://www.cnblogs.com/youk/archive/2011/11/25/2262596.html

0 0