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.
here is my transaction manager:
<tx:annotation-driven />
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
And I'm using this line of code to insert data:
sessionFactory.getCurrentSession().save(deal);
Please if anybody has the solution, help me out.