A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
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
session.clear when to use
Hibernate or browser caching DB results?
Hibernate: How to prevent insert and delete?
HOw to manage the session object after transaction is completed?
Problem with Hibernate Cache
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014