a different object with the same identifier value was already associated with the session。
错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。
原因,我在service类的一个方法中使用了两个相同identifier(标志)的bean,而我配置的spring事务管理是针对service类的,这就导致了一个session中有两个相同的bean产生冲突,这时只需要把两个bean的获取放到两个方法中就可以了。