项目是ssh注解,用了网上几种方法都无效
最后使用以下代码可以
public void m_save(T o) throws AuthException {
Session session = this.getCurrentSession();
session.clear();
this.getCurrentSession().merge(o);
session.flush();
}
项目是ssh注解,用了网上几种方法都无效
最后使用以下代码可以
public void m_save(T o) throws AuthException {
Session session = this.getCurrentSession();
session.clear();
this.getCurrentSession().merge(o);
session.flush();
}