@Transactional in Spring+Hibernate

后端 未结 3 1539
轮回少年
轮回少年 2021-01-02 11:49

I an using Spring 3.1 + Hibernate 4.x in my web application. In my DAO, i am saving User type object as following

sessionFactory.getCurren         


        
3条回答
  •  清酒与你
    2021-01-02 12:47

    Basically what needs to be done is to remove from the applicationContext.xml file the following line for Hibernate properties:

    thread
    

    Once that is remove, Hibernate makes use of Spring for transaction management

    Good luck to you all.

提交回复
热议问题