ACCP8.0北大青鸟SSH10章上机
Configurationconfiguration=newConfiguration().configure();
SessionFactorysessionFactory=configuration.buildSessionFactory();
Sessionsession=sessionFactory.openSession();
或者通过MyEclipse的Hibernate工具自动生成的HibernateSessionFactory.getSession()方法来获取Session,调用HibernateSessionFactory.closeSessio
用户评论