Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.8.5 (Dijkstra SR5), 1.9.2 (Evans SR2), 1.10 GA (Fowler), 1.11 M1 (Gosling)
-
None
-
59 - Evans / Fowler SR
Description
public interface RepositoryExample extends JpaRepository<User, String>{ // This Query's timeout just works @Query("FROM User") @Transactional(timeout = 10,propagation = Propagation.REQUIRED) public List<User> findAll2(); //The query below - timeout doesn't work , the @Transactional timeout is not being applied // Although in the documentation it shows it suppose to work exactly as below @Override @Transactional(timeout = 10,propagation = Propagation.REQUIRED) public List<User> findAll(); }
Recommendation: In order to debug it put breakpoint in EntityManagerFactoryUtils.applyTransactionTimeout
Attachments
Issue Links
- depends on
-
SPR-13109 Provide means to opt out of default annotation based transaction management by bean
-
- Closed
-
- is duplicated by
-
DATAJPA-755 Overriding @Transactional on repository method not working
-
- Closed
-
- relates to
-
DATACMNS-778 Backport fix for @javax.transaction.Transactional support
-
- Closed
-
-
DATACMNS-732 JTA 1.2's @Transactional not being applied to query methods
-
- Closed
-