• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

How to clear Hibernate cache  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'm so happy! And I wish to make this tiny ad happy too:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!