-->
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: Components not caching
PostPosted: Wed Jan 11, 2006 11:36 pm 
Newbie

Joined: Thu Jun 17, 2004 1:15 am
Posts: 7
Hibernate version: 3

Description of problem
I have added the <cache usage="read-write"/> definition to a set within a component and have noticed that caching does not work for that component. All other properties and collections are cached, except ones defined within a component. Is this the expected outcome, or is there something else I need to do to cache sets within components?

Thanks.

Mapping documents:

Code:
<class name="asgard.apmclientpersist.model.client.Client" table="CLIENT">

    ...

    <component name="marketing" class="asgard.apmclientpersist.model.marketing.Marketing">
        <set name="items" table="CLIENT_MARKETING" cascade="all-delete-orphan" sort="natural">
            <cache usage="read-write"/>
            <key column="CLIENT_SEQ"/>
            <many-to-many column="MARKETING_SEQ" class="asgard.apmclientpersist.model.marketing.MarketingItem"/>
        </set>
    </component>

    ...

</class>


Top
 Profile  
 
 Post subject: Fixed.
PostPosted: Thu Jan 12, 2006 1:04 am 
Newbie

Joined: Thu Jun 17, 2004 1:15 am
Posts: 7
I have found the solution.


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.