Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Object Relational Mapping
using session.clear and session.evict
RaviNada Kiran
Ranch Hand
Posts: 528
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 106
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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
More...