title: Spring 3.x and hibernate 4.x transaction management issue using @Transactional
body: <p>I'm using Spring 3.0 and hibernate 4.x, but I'm facing issue on transaction management. I'm using @Transactional annotation in service layer but it is taking too long time to save large amount of data into Database.</p>
  
  <p>here is my transaction manager:</p>
  
  <pre><code>&lt;tx:annotation-driven /&gt;
  &lt;bean id="transactionManager"
      class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;
      &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And I'm using this line of code to insert data:</p>
  
  <pre><code>sessionFactory.getCurrentSession().save(deal);
  </code></pre>
  
  <p>Please if anybody has the solution, help me out.</p>