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 collection cache
PostPosted: Wed Oct 05, 2005 3:05 pm 
Newbie

Joined: Fri Aug 13, 2004 7:27 pm
Posts: 6
Hello
We are trying to use the second level cache with our app which works fine in our implementation until we enable the filter for a collection.With the filter the caching doesnt seem to happen . Anyone have any ideas ?
E.g
<class name="Class1" table="TABLE" mutable="false">
....<cache usage="read-write"/>

<set name="collection1" inverse="true">
<cache usage="read-write"/>
<key>
<column name="KEY" not-null="true" />
</key>
<one-to-many class="Class2" />
<filter name="activeContentFilter" condition="((IS_ACTIVE = 'Y' OR IS_ACTIVE IS NULL ) AND ((ACTIVATION_DATE IS NULL OR :currentDate > ACTIVATION_DATE) AND (EXPIRATION_DATE IS NULL OR :currentDate &lt;=EXPIRATION_DATE)))"/>
</set>
</class>

in the above example when we load class1.collection1 it doesnt get cached when we enable the filter even if the value of the date is the same in all cases.

Any pointers would be appreciated.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 4:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is expected.


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.