What is the use of @Transactional with JPA and Hibernate?

后端 未结 4 550
半阙折子戏
半阙折子戏 2021-02-09 04:24

I\'m learning about how to create REST API with JPA and Hibernate and a MySQL database and I see this @Transactional annotation. Can someone explain what is the use of this anno

4条回答
  •  暖寄归人
    2021-02-09 04:53

    To get familiar with @Transactional annotation in general, please take a look at this article. To dig deeper please refer spring docs.

提交回复
热议问题