-->
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: How to disable automatic synchronization
PostPosted: Sat Sep 16, 2006 5:24 am 
Newbie

Joined: Sat Sep 09, 2006 11:01 am
Posts: 6
Hi all! When the object is in persistent state and i change its properties when the transaction is commited the properties are synchronized automaticaly. But this is a problem in some situation is there a way to disable this automatic synchronization so the object is updated only when i invoke update() method.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 2:47 pm 
Newbie

Joined: Sat Sep 16, 2006 2:31 pm
Posts: 2
You can
1. rollback the session instead of commiting, if you don't want to change the data
2. change the data tentatively elsewhere (e.g. a clone of your entity)
3. set the session's flush to NEVER until you're sure you want the changes[/list]

_________________
Marcus, schulte.marcus <at> web.de


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.