-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to invalidate cached objects ?
PostPosted: Fri Sep 05, 2003 9:48 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2003 11:33 pm
Posts: 38
I have Department class and Employee class. They are properly mapped as Hibernate objects. Each department has some employees (Set department.getEmployees()). When I call department.getEmployees() from one servlet to return all the employees in the specified department, the same set of objects are returned even after some employee objects are removed from another servlet. So how to invalidate the cached objects and let department.getEmployees() bypass cached objects and re-fetch records from database every time ?

Thanks !


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 05, 2003 9:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Which cache? session or JCS?


I hope you are not doing an evil thing like using a long-lived Session!


Top
 Profile  
 
 Post subject: so it must be the cache of resin
PostPosted: Sat Sep 06, 2003 10:09 am 
Beginner
Beginner

Joined: Tue Aug 26, 2003 11:33 pm
Posts: 38
I'll check


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.