Announcement Announcement Module
Collapse
No announcement yet.
Transaction NOT Rollback for RuntimeException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transaction NOT Rollback for RuntimeException

    Hi
    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

  • #2
    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).

    Comment

    Working...
    X