aspose file tools
The moose likes Object Relational Mapping and the fly likes How to clear Hibernate cache Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "How to clear Hibernate cache" Watch "How to clear Hibernate cache" New topic
Author

How to clear Hibernate cache

Madan Prabhu Durai
Greenhorn

Joined: Nov 11, 2008
Posts: 3
Hi Friends!
My problem as follows.,
In my project, we had the form used to display and edit user profile information. When users edit the form the values are updated to the database then i have to display the updated info on the form.
when i retrieve the updated value from DB through HQL, it retrieves only old data. But the DB has updated values..

we are using hibernate3.1 and mysql5.
i don't enable hibernate caching in hibernate.cfg.xml file.

i already tried session.evict and sessionFactory.evict methods. but no use, till now it retrieve only old values...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to clear Hibernate cache
 
Similar Threads
MVC Model and Domain Model
Update Database with the newly entered value
Backing bean does not get updated data
database update techniques?
struts_hibernate project