异常信息
A different object with the same identifier value was already associated with the session
这个错误的意思就是在Hibernate的session中存在了两个对象去标记同一个实体
代码分析
实体创建的代码:
由于这些实体都是新创
A different object with the same identifier value was already associated with the session
这个错误的意思就是在Hibernate的session中存在了两个对象去标记同一个实体
实体创建的代码:
由于这些实体都是新创