开发者

Hibernate LocalSessionFactrory VS HibernateTransactionManager

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜