摘要:
我们的Dao都是继承自自己写的一个Dao基类,基类文件是这样写的:public class HibernateDao { protected static InitHibernate hb ; protected Session sess = null; protected Transaction transaction = null; public HibernateDao() { this.openSession(); } public HibernateDao(Session session) { sess = session; } public void openSession(){ 阅读全文