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
相關文章
相關標籤/搜索