hibernate的session存在了两个相同的标识,但是是不同实体,不知怎么解决
报的异常是:a different object with the same identifier value was already associated with the session
网上百度到的方法都不能解决,可能是因为说的不够详细,希望遇到过这种问题的前辈能帮忙解决一下。
hibernate session object 映射
[解决办法]