org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.entity.Member#6]
问题:
用hibernate update时报如下异常
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.entity.Member#6]
原因:
1.过滤器
2.用merge代替