-->
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: Access object only in 2nd level cache
PostPosted: Wed Mar 16, 2005 11:39 am 
Newbie

Joined: Fri Feb 25, 2005 10:51 am
Posts: 8
Hi,
Is there a way to access objects in the cache without falling back on the database if it's not there? I use "session.get" but I never want to make a db call.

I use ehcache.

/william


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:37 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
session.load on a lazy entity

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 7:11 am 
Newbie

Joined: Fri Feb 25, 2005 10:51 am
Posts: 8
thanks for your answer,
But I use short sessiosn and I have all the data in the 2nd level cache. So I basically want to ask just the 2nd level cache. If the element is not there I know it does'nt exist and I don't want to make a db call to confirm that.


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.