a different object with the same identifier value was already associated with the session
2014-08-06 11:31
543 查看
a different object with the same identifier value was already associated with the session。
错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。
原因,我在service类的一个方法中使用了两个相同identifier(标志)的bean,而我配置的spring事务管理是针对service类的,这就导致了一个session中有两个相同的bean产生冲突,这时只需要把两个bean的获取放到两个方法中就可以了。
错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。
原因,我在service类的一个方法中使用了两个相同identifier(标志)的bean,而我配置的spring事务管理是针对service类的,这就导致了一个session中有两个相同的bean产生冲突,这时只需要把两个bean的获取放到两个方法中就可以了。
相关文章推荐
- a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session
- HibernateSystemException: a different object with the same identifier value was already associated with the session.
- a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session 一个经典的hibernate错误
- Nhibernate a different object with the same identifier value was already associated with the session解决办法
- a different object with the same identifier value was already associated with the session
- 解决a different object with the same identifier value was already associated with the session错误
- a different object with the same identifier value was already associated with the session解决之道
- a different object with the same identifier value was already associated with the session 深入分析
- Hibernate Exception: a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session 产生原因分析
- a different object with the same identifier value was already associated with the session
- 解决a different object with the same identifier value was already associated with the session错误
- a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session
- a different object with the same identifier value was already associated with the session
- A different object with the same identifier value was already associated with the session错误解决方法