Global web icon
stackoverflow.com
https://stackoverflow.com/questions/78132448/when-…
When should we use @Transactional annotation? - Stack Overflow
I wanted to know when we should use @Transactional in Spring Boot Services. Since JpaRepository's save() method is annotated with @Tranasactional is it required for me to add that annotation in my
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/1099025/spring…
Spring - @Transactional - What happens in background?
I want to know what actually happens when you annotate a method with @Transactional? Of course, I know that Spring will wrap that method in a Transaction. But, I have the following doubts: I heard...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/17564653/what-…
java - What does @Transactional do? - Stack Overflow
What does @Transactional do? [duplicate] Asked 12 years, 5 months ago Modified 6 years, 2 months ago Viewed 28k times
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/8490852/spring…
Spring @Transactional - isolation, propagation - Stack Overflow
Can someone explain the isolation & propagation parameters in the @Transactional annotation via a real-world example? Basically when and why should I choose to change their default values?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/7872773/annota…
Annotation @Transactional. How to rollback? - Stack Overflow
I used this annotation successfully for a Dao class. And rollback works for tests. But now I need to rollback real code, not just tests. There are special annotations for use in tests. But which
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/23132822/what-…
java - What is the difference between defining @Transactional on class ...
48 @Transactional on a class applies to each method on the service. It is a shortcut. Typically, you can set @Transactional(readOnly = true) on a service class, if you know that all methods will access the repository layer. You can then override the behavior with @Transactional on methods performing changes in your model.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/10394857/how-t…
How to use @Transactional with Spring Data? - Stack Overflow
0 We use @Transactional annotation when we create/update one more entity at the same time. If the method which has @Transactional throws an exception, the annotation helps to roll back the previous inserts.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/1614139/spring…
Spring @Transactional read-only propagation - Stack Overflow
Here is a worked example, CircuitStateRepository is a spring-data JPA repository. BeanS calls a transactional=read-only Bean1, which does a lookup and calls transactional=read-write Bean2 which saves a new object. Bean1 starts a read-only tx.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/72970534/trans…
Transactional outbox pattern vs Event Sourcing - Stack Overflow
What is the exact difference between transactional outbox and event sourcing patterns? Both are competitive pattern and can be used for same purpose. Is there any example through which I can unders...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/13051204/sprin…
Spring transaction REQUIRED vs REQUIRES_NEW - Stack Overflow
Using REQUIRES_NEW is only relevant when the method is invoked from a transactional context; when the method is invoked from a non-transactional context, it will behave exactly as REQUIRED - it will create a new transaction.