`
angkorpeach
  • 浏览: 119438 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

SSH框架NonUniqueObjectException

阅读更多

org.hibernate.NonUniqueObjectException:a diffent object with the same identifier value was already associated with the session:

 

很久没用过ssh框架了,这个错误一直都没完全弄明白,只知道是因为我对同一个id的对象操作了两次引起的,还有就是用hibernate的merger(obj)方法替换sava或saveOrUpdate方法可以解决。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics