WeDao继承于HibernateDaoSupport
我想在struts的action中获取SessionFactory 要怎么做呢?SessionFactory sf = new Configuration().configure().buildSessionFactory();
Session session = sf.openSession();会提示配置文件不存在,
我想在struts的action中获取SessionFactory 要怎么做呢?SessionFactory sf = new Configuration().configure().buildSessionFactory();
Session session = sf.openSession();会提示配置文件不存在,
SessionFactory sf = new Configuration().configure().buildSessionFactory();
Session session = sf.openSession();
必须集成hibernate的类。所以不能继承。
我想去掉dao,只用hibernate的表映射 即可