title: Autocommit and Spring Declarative Transactions
body: <p>I have a single service method annotated with <code>Propagation.Required</code>. It performs three separate operations . </p>
  
  <ol>
  <li>Insert to table 1  from table z if no records are in table 1</li>
  <li>Insert/Update table 1 as per user edits/Additions</li>
  <li>Delete x records from table 1  </li>
  </ol>
  
  <p>Forgive my ignorance but shouldn't all these run under a single transaction ? In the sense, if the third Query runs into an Exception, shouldn't the first &amp; second rollback too ? This doesn't happen in my case. Will hibernate auto commit setting affect the txn boundaries in any way ? Auto commit is set to true in my case. What I require is the commit should take place in any of these tables only if all are successful.</p>