首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

HIbernate吻合Java习惯的关系数据库持久化之SessionFactory

2012-10-27 
HIbernate符合Java习惯的关系数据库持久化之SessionFactoryWhat does 3个方法?A org.hibernate.Session be

HIbernate符合Java习惯的关系数据库持久化之SessionFactory

What does

3个方法

?

A org.hibernate.Session begins when the first call to getCurrentSession()is made for the current thread. It is then bound by Hibernate to thecurrent thread. When the transaction ends, either through commit orrollback, Hibernate automatically unbinds the org.hibernate.Session from the thread and closes it for you. If you call getCurrentSession() again, you get a new org.hibernate.Session and can start a new unit of work.

新会话

?