• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Cache

 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have an app which used Hibernate. I am persisting everything via a session.saveOrUpdate(parentObject)

SO say parentObject has a List of ChildObjects. if i delete, chnage or update a particular child object the changes are persisted to DB.
But when i got back to the first page of the application where it loads the parent object and its children objects the original parent and children are loaded as if no session.saveOrUpdate occured

I have not changed any setting of the cache. So all cache behaviour is the default behavior for Hibernate 3.3.
i tried session.flush and session.evict(parentObject)

Any thoughts on how to get hibernate to write changes to cache as well as DB?

Thanks
Alan

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic