hibernate异常:org.hibernate.NonUniqueObjectException

异常:org.hibernate.NonUniqueObjectException

提示:a different object with the same identifier value was already associated with the session: [entity.Gemp#40]

提示:具有相同标识符值的不同对象已与会话关联 entity包下的Gemp类 主键值:40

插入了两个主键值一样的对象 或者这个主键表中已经存在了

 

 

posted @ 2016-11-09 20:13  不可思议P  阅读(443)  评论(0)    收藏  举报