Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-715

@Transactional customizations not applied correctly on redeclared methods

    XMLWordPrintable

Details

    • 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

          Activity

            People

              olivergierke Oliver Drotbohm
              Avishay Avishay
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: