About 1,600,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 …

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

    What does @Transactional do? [duplicate] Asked 11 years, 11 months ago Modified 5 years, 9 months ago Viewed 28k times

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

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

    Oct 24, 2011 · Just throw any RuntimeException from a method marked as @Transactional. By default all RuntimeException s rollback transaction whereas checked exceptions don't. This is …

  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 …

  6. java - javax.transaction.Transactional vs org.springframework ...

    265 I don't understand what is the actual difference between annotations javax.transaction.Transactional and …

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

  8. SpringBoot JPA need no .save () on @Transactional? [duplicate]

    Oct 12, 2017 · I have short question: Do I need a repo.save(x) call on @Transactional methods? I ask cause I see changes on my DB without save, and read no clear docs about it. So is it …

  9. Why we shouldn't make a Spring MVC controller @Transactional?

    Apr 17, 2014 · In Spring, the @Transactional annotation allows rollback to be specified for certain exception types, or code can obtain a thread-local TransactionStatus and call …

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

    Aug 29, 2013 · 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 …

Refresh