Sep 25th, 2012, 10:02 PM
Transaction NOT Rollback for RuntimeException
We use Spring' JpaTransactionManager with hiberate persistence.xml using LocalContainerEntityManagerFactoryBean. I tried to rollback a transaction by explicitly throwing a Runtime excpetion. But all the data in 3 different JPA Entities is committed.
How to rollback a transaction using Spring+JPA+Hibernate?
Thanks in adv
Sep 26th, 2012, 12:55 AM
Please use the search as this question has been answered numerous times before...
If your transactions aren't rolling back either your setup is wrong our you use a database that doesn't support transactions (MySQL with MyISAM tables for instance).