-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: difference between session.evict() and session.clear()
PostPosted: Fri Jul 30, 2010 2:40 pm 
Newbie

Joined: Fri Jul 30, 2010 2:02 pm
Posts: 6
Hi all,

I am new to hibernate. I wanted to know what is the difference between session.evict(), and session.clear().

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: difference between session.evict() and session.clear()
PostPosted: Sat Jul 31, 2010 4:28 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Session.evict() removes a single object from the session and Session.clear() removes all objects from the session.


Top
 Profile  
 
 Post subject: Re: difference between session.evict() and session.clear()
PostPosted: Sat Jul 31, 2010 12:00 pm 
Newbie

Joined: Fri Jul 30, 2010 2:02 pm
Posts: 6
Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.