-->
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: relationship between second level cache and filters
PostPosted: Mon Jan 30, 2006 12:34 am 
Newbie

Joined: Mon Jun 06, 2005 10:11 am
Posts: 14
Hi,
I am enabling the second level cache. I am also using some filters. When I inspected the Jboss cache log, I see in the logs that its ignoring the second level cache due to enabled filters. Is there any relationship between filters and second level cache. I could not get much details from documentation.

Thanks
Ashwani

Hibernate version:3.0


Mapping documents:

<hibernate-mapping>
<class name="com.sony.spe.ifds.domain.CodeMaster" table="CODE_MASTER">
<cache usage="transactional" region="CodeMaster" />
...

<set name="codeDetails" lazy="true" inverse="true" cascade="all,delete-orphan" order-by="SORT_ORDER">
<cache usage="transactional" region="CodeMaster" />

<key column="CODE_MASTER_ID"/>
<one-to-many class="com.sony.spe.ifds.domain.CodeDetail"/>
<filter name="codeDetailFilter" condition=":languageCd = LANGUAGE_CD"/>

</set>
</class>

<filter-def name="codeDetailFilter">
<filter-param name="languageCd" type="string"/>
</filter-def>

</hibernate-mapping>




Code between sessionFactory.openSession() and session.close():




Full stack trace of any exception that occurs:

Name and version of the database you are using:


Debug level Hibernate log excerpt:

19 Jan 2006 17:18:32,488 DEBUG event.def.DefaultInitializeCollectionEventListener - initializing collection [com.sony.spe.ifds.domain.CodeMaster.codeDetails#1003309]
19 Jan 2006 17:18:32,488 DEBUG event.def.DefaultInitializeCollectionEventListener - checking second-level cache
19 Jan 2006 17:18:32,488 DEBUG event.def.DefaultInitializeCollectionEventListener - disregarding cached version (if any) of collection due to enabled filters
19 Jan 2006 17:18:32,488 DEBUG event.def.DefaultInitializeCollectionEventListener - collection not cached




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.