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.  [ 2 posts ] 
Author Message
 Post subject: Regarding SessionFactory Cache
PostPosted: Tue Oct 05, 2010 2:58 pm 
Newbie

Joined: Sat Sep 04, 2010 4:06 am
Posts: 4
Dear all
we know that SessionFactory is nothing but Second leve cache.when we close session,then the all objects which are in session will come to SessionFactory by default? or do we need to call everytime session.evict() before closing the connection.


Top
 Profile  
 
 Post subject: Re: Regarding SessionFactory Cache
PostPosted: Wed Oct 06, 2010 5:26 am 
Newbie

Joined: Tue Feb 02, 2010 10:37 am
Posts: 13
Only Session Cache is available by default.
SessionFactory level cache has to be configured in .cgf.xml file.
session.evict() is to remove the entity from a session and it has no relevance to context of importing session cache to session factory cache.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.