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>