Illegal attempt to associate a collection with two open sessions;
这里怎么说我打开了两个sessions
这个是我数据库的代码:
public void del(String roleid) {
log.debug("deleting Syrole instance");
try {
Syrole syrole=(Syrole)this.getHibernateTemplate().get(Syrole.class, roleid);
getHibernateTemplate().delete(syrole);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
各位帮看下