title: Will the rollbackFor attribute in Spring Data will work even if I do a try catch?
body: <p>I was reading about the rollbackFor attribute when using JPA.</p>
  
  <p>Right now my code is this</p>
  
  <pre><code>@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
     public void newUser(User user) {
          try{
              userRepository.saveAndFlush(user);
          }catch(Exception e){
              //log exception
          }
          return;
      }
  </code></pre>
  
  <p>As far as I know, the rollbackFor will work when an exception is captured... is this the proper way to do it? or the try catch should not be there?</p>
  
  <p>Thanks.</p>