开发者

Hibernate LocalSessionFactrory VS HibernateTransactionManager

开发者 https://www.devze.com 2023-03-13 14:49 出处:网络
I am implementing a application with Struts2 + Spring + Hibernate. I would like to know what is the difference between using LocalSessionFa开发者_如何转开发ctory alone in Spring\'s applicationContext

I am implementing a application with Struts2 + Spring + Hibernate.

I would like to know what is the difference between using LocalSessionFa开发者_如何转开发ctory alone in Spring's applicationContext.xml and using HibernateTransactionManager, having the LocalSessionFactory injected.


look at http://community.jboss.org/wiki/Non-transactionalDataAccessAndTheAuto-commitMode especially at Working nontransactionally with Hibernate

0

精彩评论

暂无评论...
验证码 换一张
取 消