为什么是空指针?
在myclipse写的:有个异常
java.lang.NullPointerException
mypack.HibernateDAO.getCurrentSession(HibernateDAO.java:7)
相应的代码如下:public Session getCurrentSession(){
return HibernateSessionFactory.getSessionFactory().getCurrentSession();}
顺便问下myeclipse中,自动生成的SessionFactory 要不要重写。