-->
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: Cached Object Synchronization
PostPosted: Fri Apr 22, 2005 7:06 am 
Newbie

Joined: Fri Apr 22, 2005 6:46 am
Posts: 1
Hi there,

I have a query regarding the synchronization of object state with the data in the database. I have a database, which is being used by two applications simulataneously.

Lets say, through first application, I query table 'X' and the data is stored in the hibernate object, which is cached and for the subsequent queries the data would be returned from the cached object. Lets say, the second application, updates the data of table 'X'. Now in this case, the state of the cached object will become dirty.

I want to know, in the above scenario, will hibernate supports the synechronized the state of the cached object with the data in the database.

Regards,
PS.[/img]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 7:18 am 
Newbie

Joined: Fri Apr 15, 2005 8:08 am
Posts: 6
I met a similar problem like you. At present, I use lock mechanism on the specific records. Hope there is a better solution.


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.