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: Reloading when changes are made by external application
PostPosted: Wed Nov 10, 2004 5:13 am 
Dear All

I am trying to deal with the following situation:
I have a hierarchical structure of objects (much like a folder tree on a filesystem) and am loading this through hibernate. Ocasionally changes are made to the storing table by an external source which lies outside the control of my application, of which the application is however notified by looking up a timestamp in another table. Given that throughout the application only a direct reference to the root folder exists, I was wondering how to keep the in-memory folder structure up to date?

Is there a way of querying the timestamp for every access to any folder?
Once such a change is detected, is there a way of causing Hibernate to reload the objects?

BR
George Georgovassilis[/b]


Top
  
 
 Post subject:
PostPosted: Fri Dec 03, 2004 11:59 am 
Beginner
Beginner

Joined: Fri Mar 26, 2004 8:19 am
Posts: 49
there's a method call on the Session to synch an object with the db...

Could be refresh?

Point being, it will sync your object graph with the db....


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.