-->
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: Implementing Cancel button functionality
PostPosted: Sun Apr 13, 2008 8:25 pm 
Newbie

Joined: Sun Apr 13, 2008 8:13 pm
Posts: 1
Hi All,

I have an Event class that contains as set of Users related to that particular event. I have an Add and a Cancel button on the screen. What I want to know is that whatever I perform on that screen means I add a number of users to that event, how should I implement the Cancel button functionality? Should I simply do Transaction rollback or is there any other way as well?


Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 14, 2008 9:22 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
FLUSH_MODE on the session instance can be set to MANUAL. By doing that hibernate will not automatically update the data in the database unless you ask it to update by manually flushing the data.

_________________
Sukirtha


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.