-->
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: Filters and the Second Level cache
PostPosted: Tue Feb 03, 2009 5:58 pm 
Newbie

Joined: Thu Jun 09, 2005 2:49 pm
Posts: 6
I am using hibernate v3.2.3.ga.

I have searched for various combinations of the key words filter and second level cache and found nothing that seems relevant.

Essentially, I have several association collections mapped to a parent class. Some are sets and some are maps. Some have sort some do not. they all have the <cache> element defined. Some of these associations are stored in the second level cache but some are not. The ones that are not have only one feature in common: They have a filter defined that is enabled on the session when the query is executed. At this point I am pretty confident that it is the filters that are in the way of having the entire object graph loaded from second level cache on the second request for it.

Is it possible to have hibernate get these collections from the second level cache instead of going to the database each time?

Thanks,

Dana


Top
 Profile  
 
 Post subject: Filters and the Second Level cache
PostPosted: Thu Apr 02, 2009 10:52 am 
Newbie

Joined: Tue Mar 24, 2009 1:09 pm
Posts: 14
Did you ever resolve this?

Im having a similar issue.


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.