title: @Transactional rollback in loop
body: <p>I have some problem with rollback transaction when using @Transactional. I have the following code:</p>
  
  <pre><code>@Transactional
  public class A{
  
      @Resource
      Object obj;
  
      public void insertMultiTable(){
          for(Item item:items){
              try{
                  obj.insertTableA();
                  obj.insertTableB();
              } catch(Exception e){
                  // do somethings...
              }
          }
      }
  }
  </code></pre>
  
  <p>As you can see, i will do insertTableA and insertTableB, my process are success when both finish. I had first and second time is success. But in third, insertTableB will throw Exception, and i just want rollback only this loop with first and second times had been insert in database. How i can do it? Please help...</p>