It's not a secret anymore!*
The moose likes Object Relational Mapping and the fly likes using session.clear and session.evict Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "using session.clear and session.evict" Watch "using session.clear and session.evict" New topic
Author

using session.clear and session.evict

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528

Hi

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
Reehan Lalkhanwar
Ranch Hand

Joined: Jun 16, 2007
Posts: 106
session.clear(): Completely clear the session.
session.evict(Object object): Remove this instance from the session cache. i.e. the object that's passed.


Thank you,
Reehan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using session.clear and session.evict
 
Similar Threads
session.clear when to use
HOw to manage the session object after transaction is completed?
Hibernate or browser caching DB results?
Hibernate: How to prevent insert and delete?
Problem with Hibernate Cache