About 18,800,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. 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 …

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

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

  4. How does @Transactional work on test methods? - Stack Overflow

    I'm wondering how @Transactional works with Spring Data JPA / Hibernate on test methods. I searched some explanations on the web but it still seems obscure. Below is the code I'm …

  5. Spring nested transactions - Stack Overflow

    But @Transactional never rolls back a transaction for any checked exception. Thus, Spring allows you to define Exception for which transaction should be rollbacked Exception for which …

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

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

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

  9. Where should "@Transactional" be placed Service Layer or DAO

    Applying @Transactional At the DAO layer, it is not recommended because it can create unwanted nested transactions, make layers too dependent on each other, and reduce …

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

    In Spring, the @Transactional annotation allows rollback to be specified for certain exception types, or code can obtain a thread-local TransactionStatus and call setRollbackOnly(). So, in …