About 17,500,000 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 doubts: I heard...

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

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

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

  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 tests. But which

  6. java - @Async and @Transactional - Stack Overflow

    Mar 2, 2022 · It will use the same connection from the parent method (method with @Transactional) and any exception caused in the called method (method without @Transactional) will cause the …

  7. Why use @Transactional with @Service instead of with @Controller

    I have seen many comments in stack-overflow articles I found certain things about either @Transactional use with @Service or with @Controller "Usually, one should put a transaction …

  8. java - @Transactional method calling another method without ...

    It will use the same connection from the parent method (with @Transactional) and any exception caused in the called method (without @Transactional) will cause the transaction to rollback as configured in …

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

    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 know that all …

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