更改osworkflow支持hibernate3[11]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

ERROR [(org.hibernate.LazyInitializationException)] could not initialize proxy - the owning Session was closed

 

通过跟踪代码可以发现,在创建sessionfactory是在org.springframework.orm.hibernate3.LocalSessionFactoryBean中的    protected SessionFactory newSessionFactory(Configuration config) throws HibernateException {

        return config.buildSessionFactory();

    }

方法创建出来的。

 

对于外界提供sessionfactorysession是通过package org.springframework.orm.hibernate3.support. HibernateDaoSupport里提供出来。

包括主要的getSessionFactory,getSession,template相关,closesession等。

 

本文关键:更改osworkflow支持hibernate3
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top