-->
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.  [ 1 post ] 
Author Message
 Post subject: Second level caching in Hibernate: when it works?
PostPosted: Wed Jun 04, 2008 7:20 am 
Newbie

Joined: Mon Jun 02, 2008 5:32 am
Posts: 2
Location: Russia
Hibernate version:3.2

All greetings!

I correctly understand that the second-level cache works for entities (or classes) only when an entity extracted directly from database (for example through method .load (..)) or when the entity is included in the collection of another entity (through links one-to-many, many-to-many and etc.)?

When the entities retrieve through the Criteria API (with a complex request inside), the cache is not used? Here I mean not hql, namely Criteria API, for example, using Junction (http://www.hibernate.org/hib_docs/v3/api/org/hibernate/criterion/Junction.html).


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

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.