org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier
value was already associated with the session: [netctoss.rights.domain.Role#7]; nested exception is
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already
associated with the session: [netctoss.rights.domain.Role#7]
把数据访问层的更新方法中的update 改成merge就可以实现
public void update(Role r) {
getHibernateTemplate().update(r);
}
public void update(Role r) {
getHibernateTemplate().merge(r);
}