https://dzone.com/articles/how-does-spring-transactional
@Transactional
(isolation = Isolation.SERIALIZABLE)
How does @Transactional annotation work?
The persistence context proxy that implements EntityManager is not the only component needed for making declarative transaction management work.
3 separate components are needed:
- the EntityManager Proxy
- the Transactional Aspect
- the Transaction Manager
The Spring declarative transaction management mechanism is very powerful, but it can be misused or wrongly configured easily.
Understanding how it works internally is helpful when troubleshooting situations when the mechanism is not at all working or is working in an unexpected way.
Read more, if You need at https://dzone.com/articles/how-does-spring-transactional
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/annotation/Transactional.html
https://www.baeldung.com/transaction-configuration-with-jpa-and-spring (@EnableTransactionManagement)
https://spring.io/guides/gs/managing-transactions/
https://docs.spring.io/spring/docs/4.2.x/spring-framework-reference/html/transaction.html
https://docs.spring.io/spring/docs/4.2.x/spring-framework-reference/html/transaction.html#transaction-declarative
https://docs.spring.io/spring-framework/docs/current/javadoc-api/overview-summary.html
No comments:
Post a Comment