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.  [ 1 post ] 
Author Message
 Post subject: session-per-conversation?
PostPosted: Tue Aug 08, 2006 8:27 am 
Beginner
Beginner

Joined: Tue Jun 07, 2005 8:24 am
Posts: 33
Location: Cincinnati, OH
I took a look at the code proposed here:

http://www.hibernate.org/43.html#A5

with respect to implementing session-per-conversation. I think I understand it pretty well, but I don't know about a certain situation. Suppose I have a series of pages that act as a "wizard" to let you edit a CustomerAccount object. On the first page, I load up my CustomerAccount object into the current session and I show the view which allows the user to update a subset of the fields in it. They click next and the second page comes up and they edit another subset, yadda yadda yadda. Anyway, half-way through the wizard, they decide to go do something else in my application (stupid users) without completing the current conversation. Suppose they go do something else which completes a conversation. Now, the session is flushed and everything that was previously committed would be written to the database, including the half-baked edit of the CustomerAccount object. Is this expected behavior?


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

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.