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

时间:2014-05-14 23:40:06   收藏:0   阅读:419

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!