大家好:
请问Spring中的 org.springframework.orm.hibernate3.HibernateInterceptor
是做什么用的了哦?
我在google搜了半天也有找到 “真正关于”他的介绍作用哦(中文)。
大家谁知道哦
大家好:
请问Spring中的 org.springframework.orm.hibernate3.HibernateInterceptor
是做什么用的了哦?
我在google搜了半天也有找到 “真正关于”他的介绍作用哦(中文)。
大家谁知道哦
帮你打开(同时绑定在thread上)和关闭session,javadoc中写的很清楚。简单的说,用这个可以神不知鬼不觉的打开和关闭session,省去你在代码中的很多重复工作。程序中用Session session = this.sessionFactory.getCurrentSession();获得绑定的session