-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Any concept like SavePoint / Rollback in Hibernate
PostPosted: Mon Aug 29, 2005 3:04 pm 
Newbie

Joined: Mon Aug 29, 2005 1:04 pm
Posts: 9
Location: Hyderabad, INDIA
Dear All,

Is there any similar concept of SavePoints / Rollback in Hibernate. If yes, please post with a sample code snippet.

Thanks
Raza Naqvi


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 7:47 pm 
Senior
Senior

Joined: Wed Jul 13, 2005 4:31 pm
Posts: 142
Location: Seattle, WA
get transaction using session.beginTransaction()
Do the changes, then commit() or rollback() transaction as a whole.

Also see -
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#transactions-demarcation


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.