Transaction Management
Posted
by Senthilnathan
on Stack Overflow
See other posts from Stack Overflow
or by Senthilnathan
Published on 2010-04-14T17:52:12Z
Indexed on
2010/04/14
18:33 UTC
Read the original article
Hit count: 302
Hi all,
In my code I am updating two table, one after the other.
update(table1_details);
update(table2_details);
So if the update fails in table1 , table2 should not be updated or should be rolled back.
How to handle this situation. I know I have to use transaction. Can some one help with code !!! I am using Java with spring and hibernate .
© Stack Overflow or respective owner