-->
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.  [ 4 posts ] 
Author Message
 Post subject: session filter cache
PostPosted: Mon Mar 22, 2004 6:35 pm 
Newbie

Joined: Tue Feb 24, 2004 12:06 pm
Posts: 7
Hello;

i have a question about the method filter of a collection.

I wanted to know, if the persistent collection, on which the filter is applied, is cached, will the query filter use the cache or not?

Thanks in advance for the answer.

Jean


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 22, 2004 10:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
It will not. However, it can use the query cache.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 3:18 pm 
Newbie

Joined: Tue Jul 06, 2004 3:15 pm
Posts: 1
What do I need to do to setup the filter to use the Query Cache?
The filter function on the Session accepts a String and not a Query object.
Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 3:20 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
session.createFilter().setCacheable(true);

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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