-->
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: How to implement Second level caching for joined-subclasses?
PostPosted: Thu Sep 25, 2008 1:26 am 
Newbie

Joined: Wed Sep 24, 2008 7:16 am
Posts: 1
Hi,
We have an hierarchy of entities:
Parent => A,B,C

Class A is potentially very large and dynamic population. Caching it would be very memory consuming and un-efficient.

On the other hand, B and C are really good candidates for caching as they are rarely modified and are recently read.

The mappings of A,B,C are defined as joined-subclasses of Parent.

How can I define the second level caching on the subclasses?
The dtd does not allow defining the <cache> element within the <joined-subclass> element. Only at the <class> level, and as I said I do not want all the subclasses to be cached.

p.s. EHCache is used as the second-level caching provider.

Thanks,
Revital.


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.