We have a service in spring boot which persist data in 2 tables and that data should save in both table and in case of any exception it should be cleared from both table. An