解决a different object with the same identifier value was already associated with the session错误
1、a different object with the same identifier value was already associated with the session。 错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。 解决方法一:session.clean() PS:如果在clean操作后面又进行了saveOrUpda
原创
2013-10-21 17:37:04 ·
1280 阅读 ·
0 评论