-->
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: Query.setReadOnly(true)
PostPosted: Wed Nov 03, 2010 12:35 am 
Newbie

Joined: Wed Nov 03, 2010 12:26 am
Posts: 1
Hi,

Just wanted to get my concept clear here . If we load an object through Query Interface and set ReadOnly attribute to true, does Hibernate never dirty check the object in that session ? Or only for the instance which we have loaded

For example :

If i loaded one object with ReadOnly flag as true and read some information from it . Now in the same code flow and same hibernate session one more function is loading the same object but with ReadOnly flag set as false . Will changes on this object gets persisted ?

Thanks
Aditya


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.