
где правильно использовать аннотацию @Transactional
Aug 22, 2021 · Почему все статьи рекомендуют использовать аннотацию @Transactional в компоненте уровня @Service, а не @Repository ? у меня компонент @Repository содержит …
transações - Funcionamento do @Transactional do Spring Framework ...
1 - Na documentação do Spring é descrito o uso de @Transactional do Spring nas classes de regra de negócio(ProdutosService por exemplo) tem algum motivo especial para se usar essa anotação …
java - What does @Transactional do? - Stack Overflow
What does @Transactional do? [duplicate] Asked 12 years, 9 months ago Modified 6 years, 7 months ago Viewed 28k times
How to use @Transactional with Spring Data? - Stack Overflow
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 …
When should we use @Transactional annotation? - Stack Overflow
Mar 9, 2024 · 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 …
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...
Where should "@Transactional" be placed Service Layer or DAO
Applying @Transactional At the DAO layer, it is not recommended because it can create unwanted nested transactions, make layers too dependent on each other, and reduce flexibility. DAOs should …
Spring @Transactional - isolation, propagation - Stack Overflow
Dec 13, 2011 · 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 …
What is the use of @Transactional with JPA and Hibernate?
Jan 23, 2019 · 101 @Transactional annotation is used when you want the certain method/class (=all methods inside) to be executed in a transaction. Let's assume user A wants to transfer 100$ to user …
What are advantages of using @Transactional(readOnly = true)?
Jul 8, 2017 · Note, that @Transactional(readOnly = true) annotation can be put on class/interface instead on each method. Than on "also writes" methods put just @Transactional, like in …