-->
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: Retrieving objects from second level cache
PostPosted: Thu Apr 08, 2004 4:55 am 
Newbie

Joined: Wed Jan 28, 2004 5:18 am
Posts: 11
Hi,

Is is possible to get an object from the second level cache without getting a session (just using the session factory)?
In my application, I have some objects loaded in the second level cache (read-only objects), and I want to avoid getting and releasing a database connection just for getting an object that I know is cached in memory.

Thank you,
Catalin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 08, 2004 5:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
The session does not fetch a JDBC connection until it is actually needed.


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.