How to use @Transactional with Spring Data?

前端 未结 4 1251
無奈伤痛
無奈伤痛 2020-11-29 15:44

I just started working on a Spring-data, Hibernate, MySQL, JPA project. I switched to spring-data so that I wouldn\'t have to worry about creating queries by hand.

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 16:31

    I think that the question is a little bit wider and cannot be reduced on the annotations on the data access layer. We need to consider the entire stack of the application, the transaction strategies we want to apply and so on. There is a very comprehensive set of articles on this topic by Mark Richards on IBM developerworks site. You can find the first one here: https://developer.ibm.com/articles/j-ts1/

    Best Regards

提交回复
热议问题