首页 相关文章 在Struts中使用PlugIn扩展Hibernate

在Struts中使用PlugIn扩展Hibernate

使用Struts的PlugIn技术把HibernateSessionFactory,具体过程如下:  

(1)创建HibernateSessionFactory.java,代码如下:

  package zy.pro.td.util;    import net.sf.hibernate.HibernateException;  import net.sf.hibernate.Session;  import net.sf.hibernate.cfg.Configuration;    /**  * Configures and provides access to Hibernate sessions, tied to the  * current thread of execution. Follows the Thread Local Session  * pattern, see {@link http://hibernate...[ 查看全文 ]

2016-02-19 标签:

在Struts中使用PlugIn扩展Hibernate的相关文章

手机页面
收藏网站 回到头部