homework hibernate 2(1314010420 王弘智)

需要在 hibernate.cfg.xml 中添加的配置 <property name="hibernate.current_session_context_class">thread</property> 1 创建类 HibernateUtil.java实现单例模式的SessionFactory。 import org.hibernate.SessionFactory; import org.h
相关文章
相关标签/搜索