SSH框架中实现数据的删除功能

2024-11-17 16:37:18
推荐回答(1个)
回答1:

private SessionFactory sessionFactory;
protected HibernateTemplate getTemp(){
return new HibernateTemplate(sessionFactory);
}
//有没有下面这两段代码??
public SessionFactory getSessionFactory() {
return sessionFactory;
}

public void setSessionFactory(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}