What transaction manager to use? (JPA, Spring)

前端 未结 3 524
有刺的猬
有刺的猬 2020-12-29 05:44

I\'m developing a web application based on JPA + Hibernate, Spring and Wicket. I was wondering what\'s the best way of implementing transactions in my code? What transaction

3条回答
  •  旧时难觅i
    2020-12-29 05:49

    org.springframework.orm.jpa.JpaTransactionManager
    

    My preference is to use this with annotation:

    
    

提交回复
热议问题