1.我继承了hibernatedaosupport, this.gethiberantetemplate() save delete update会自动关闭数据库连接连接吗?
2.this.getHibernateTemplate().getSessionFactory().getCurrentSession()自动关闭数据库连接是吧?
3.用hibernatedaosupport好点?还是 hibernatetemplate好点?
2.this.getHibernateTemplate().getSessionFactory().getCurrentSession()自动关闭数据库连接是吧?
3.用hibernatedaosupport好点?还是 hibernatetemplate好点?