May 19th, 2008, 03:56 PM
JpaTransactionManager/@Transactional/JdbcTemplate - roll backs not working
I'm successfully using JPA (with hibernate as the provider) in my application with the 'tx:annotation-driven' configuration, a JpaTransactionManager, and @Transactional annotations.
I'm trying now to add a regular old DAO that extends JdbcDaoSupport with @Transactional annotations.
When I try to execute a number of sql statements within the same method on this DAO (and thus the same transaction), I would expect that when one fails, all the other statements would be rolled back - but for me, they're not. Whatever statements that succeeded get committed.
Is there anything obvious that I'm doing wrong?
I'm using Spring 2.5.4.
Thanks in advance,