如果需要更新的实体类中设置了id,id在数据库中有一个,我要更新这个数据库如何实现,这里有个问题,他saveOrUpdate的时候,出了标识符在session中有:
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.xnhd.programj.xdproduct.entity.XdProductEntity#402881fa6231fa37016231fc60880004]