码迷,mamicode.com
首页 > 系统相关 > 详细

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session异常解决办法

时间:2014-05-14 23:40:06      阅读:419      评论:0      收藏:0      [点我收藏+]

标签:c   a   问题   io   it   value   

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session异常解决办法

 

为什么还会说已经存在相同的session了呢。然后每次将项目重启后第一次编辑的时候问题不会触发,只有当第二次操作的时候才会出现这个问题。

解决办法:关闭session。好好检查操作完成后有没有关闭会话。

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session异常解决办法,布布扣,bubuko.com

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session异常解决办法

标签:c   a   问题   io   it   value   

原文地址:http://www.cnblogs.com/gavinYang/p/3728762.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!