Rollback all persisted data in multithreading if one thread got exception in Hibernate

#1

I want to Rollback all persisted data in multithreading if one thread got exception in Hibernate

#2

Are you attempting to use the same Session or EntityManager across multiple threads?