About 55 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. transactions - Difference between transactional and non-transactional ...

    Mar 11, 2016 · A non-transactional database would probably have better performance because it doesn't have to worry about rolling back changes. The individual data in the non-transactional …

  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 to add that …

  4. @Transactional(propagation=Propagation.REQUIRED) - Stack Overflow

    May 24, 2012 · In Spring applications, if you enable annotation based transaction support using and annotate any class/method with @Transactional (propagation=Propagation.REQUIRED) then Spring …

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

  6. Does Spring @Transactional attribute work on a private method?

    If I have a @Transactional annotation on a private method in a Spring bean, does the annotation have any effect? If the @Transactional annotation is on a public method, it works and opens a transaction.

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

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

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

    Oct 24, 2011 · Annotation @Transactional. How to rollback? Asked 14 years, 6 months ago Modified 1 year, 11 months ago Viewed 199k times

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

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