About 57 results
Open links in new tab
  1. 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 …

  2. java - What does @Transactional do? - Stack Overflow

    What does @Transactional do? [duplicate] Asked 12 years, 3 months ago Modified 6 years, 1 month ago Viewed 28k times

  3. 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 …

  4. 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 …

  5. Annotation @Transactional. How to rollback? - Stack Overflow

    Oct 24, 2011 · 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 …

  6. java - What is the difference between defining @Transactional on …

    Apr 17, 2014 · The @Transactional annotation on the class level will be applied to every method in the class. However, when a method is annotated with @Transactional (like, updateFoo(Foo …

  7. 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 …

  8. Spring @Transactional read-only propagation - Stack Overflow

    By default transaction propagation is REQUIRED, meaning that the same transaction will propagate from a transactional caller to transactional callee. In this case also the read-only …

  9. What is the use of @Transactional with JPA and Hibernate?

    Jan 23, 2019 · 98 @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 …

  10. Where does the @Transactional annotation belong? - Stack …

    Jul 3, 2009 · Should you place the @Transactional in the DAO classes and/or their methods or is it better to annotate the Service classes that are using the DAO objects? Or does it make …