About 24,500,000 results
Open links in new tab
  1. 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 …

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

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

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

  4. Spring transaction: rollback on Exception or Throwable

    Since you are using @Transactional, we can safely assume you are doing your database operations through Spring, Hibernate, or other JDBC wrappers. These JDBC wrappers don't …

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

  6. java - Do we need both @Transactional and @Modifying …

    Jan 18, 2018 · Yes you need @Transactional when modifying data even with @Modifying that is only an annotation to let Spring Data know you have a @Query that changes stuff. The …

  7. Correct Use of @Transactional Annotation - Stack Overflow

    Jan 31, 2025 · Could someone explain whether it is correct to use the @Transactional annotation in repositories at the interface level or method level? import …

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

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

    Apr 17, 2014 · 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 …

  10. java - Rollback transaction after @Test - Stack Overflow

    Annotating a test method with @Transactional causes the test to be run within a transaction that will, by default, be automatically rolled back after completion of the test.