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代替

posted @ 2017-06-01 10:32  凤凰别动队  阅读(131)  评论(0编辑  收藏  举报