A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Object Relational Mapping
using session.clear and session.evict
Joined: Jan 30, 2009
Apr 05, 2009 00:55:40
what is the difference in clearing the cache using session.evict and session.clear ??
please suggest your ideas
If you want something you never had do something which you had never done
Joined: Jun 16, 2007
Apr 06, 2009 04:16:55
session.clear(): Completely clear the session.
session.evict(Object object): Remove this instance from the session cache. i.e. the object that's passed.
I agree. Here's the link:
subject: using session.clear and session.evict
HOw to manage the session object after transaction is completed?
Hibernate or browser caching DB results?
Problem with Hibernate Cache
Hibernate: How to prevent insert and delete?
session.clear when to use
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015