a different object with the same identifier value was already associated with the session。
主要是先查询出了一个实体类例如CountryEntity,然后重新new了一个CountryEntity,修改了其它的属性,但是还是具有相同的oid,update这个new出来的CountryEntity的时候报错,后面就在原来的CountryEntity上操作的
今天在用Hibernate做修改的时候,
遇到 org.hibernate.NonUniqueObjectException异常,
转载于:https://my.oschina.net/xiaomaoandhong/blog/112112