I am reading the transaction management Using Spring framework. In first combination I used Spring + hiberante and used Hibernate's API's to control the transaction (Hibenate API's). Next, I wanted to test using @Transactional
annotation, and it did work.
I am getting confused on:
Do JPA , JTA, Hibernate have their "own" way of transaction management. As an example, consider if I use Spring + Hibernate, in that case would u use "JPA" transactions?
Like we have JTA, is it true to say we can use Spring and JTA to control transactions?
The
@Transactional
annotation, is that specific to Spring Framework? From what I understood, this annotation is Spring Framework specific. If this is correct, is@Transactional
using JPA/JTA to do the transaction control?
I do read online to clear my doubts, however something I don't get direct answer. Any inputs would be great help.