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 !
|
|