推荐文章:
this.getHibernateTemplate().clear();//在一对多,多对多的时候,常常会遇到这样的错误:a different object with the same identifier value was already associated with the session
getHibernateTemplate().update(user);
转载于:https://www.cnblogs.com/deve/archive/2012/03/30/2569163.html