Rollback the transcation
i am inserting table values one is related to each other.Now first table values are inserted and while saving in second table error occured.Now the first table values are store.But i want to rollback the first table values also.how can i do that?
Please help me in this.
What technology do you use for relate to database?
Rollback in spring
i am using spring,hibernate,jsf.In application context we can make that method propogation required attributes.Here two bean classes are using for saving values.
So make both inserts part of the same transaction.
Yes I agree with r035198x.
if you use Hibernate and Spring you made DAO layer, which allows transactions operations.