This article will cover the Spring transaction management in detail. Transaction management is a vast topic, hence I am dividing this article into two sections:
- Spring Transaction management: Understand Spring Transaction management in depth.
- @Transactional annotation: Learn the usage of the annotation and a few caveats of it.
Section 1
Spring Transaction Management
A transaction is a logical unit of work that either completely succeeds or fails. Think about a banking transaction. Here, the unit of work is money debiting from Account A and money crediting to Account B. If one of them fails, the entire process fails. We call it a rollback of all the steps in the transaction if anything fails in between.
from DZone.com Feed http://bit.ly/2MM1Jao
No comments:
Post a Comment