-->
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: Version of childrent are increased when modify parent????
PostPosted: Mon Apr 03, 2006 7:59 am 
Newbie

Joined: Fri Feb 24, 2006 6:16 am
Posts: 4
Hello everybody,
I have a web application, which uses the session-per-request pattern.
I load an object (and also its children) in a session for user to modify it. After that, I save it to db in another session, this make the version of parent increased and its children's version increased, too. The problem occurs when there is an exception occurs (ex: constraint violation) so the update sql fail, but the versions were increased.
So I want to ask If there is a way to prevent the increasing of children's version when update parent? and If there is a way to prevent the increasing of version(both parent and children) when an update fail?

Thanks a lot


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.