title: Spring transaction when calling private method
body: <p>I have two questions.</p>
  
  <p>If I have a method:  </p>
  
  <pre><code>@Transactional
  public method1(){
      method2()
  }
  
  public method2(){
      dao.save()
  }
  </code></pre>
  
  <p><strong><em>If there is an exception in method2(), will there be a rollback?</em></strong></p>
  
  <p>Another question:<br>
  If I have a method:    </p>
  
  <pre><code>@Transactional
  public method1(){
      method2()
  }
  
  private void method2(){
      dao.save()
  }
  </code></pre>
  
  <p><strong><em>If there is an exception in method2(), will there be a rollback?</em></strong></p>