0
出现此错误org.hibernate.NonUniqueObjectException:具有相同标识符值的不同对象已与会话关联 - hibernate认为是什么标识符?它是hibernate分配给对象的唯一值还是它是表上的主键?org.hibernate.NonUniqueObjectException - hibernate认为是什么标识符
出现此错误org.hibernate.NonUniqueObjectException:具有相同标识符值的不同对象已与会话关联 - hibernate认为是什么标识符?它是hibernate分配给对象的唯一值还是它是表上的主键?org.hibernate.NonUniqueObjectException - hibernate认为是什么标识符
Hibernate根据其主要@Id
在上下文中存储您的@Entity
,它通常应该匹配表的Primary Key
。
您正在尝试保存或保留新实体,它已经存在于您的hibernate上下文中(从早期代码中的其他位置)。