-->
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: Howto: domain class hierarchy and caching
PostPosted: Wed Jul 21, 2010 11:01 am 
Beginner
Beginner

Joined: Fri Nov 14, 2008 7:11 am
Posts: 31
Hi folks,

we have a domain model with a BaseDomainObject and several derived subclasses. The BaseDomainObject contains common attributes like id and version. This hierarchy seems to us to be an quite common one, isn't it?

Now we want to implement a 2nd level cache (EHCache). How can we specify different cache strategies for each subclass? It's not applicable to define one single strategy for the whole domain object hierarchy (which would be possible by specifying a cache strategy for the BaseDomainObject).

Thanks in advance,
Ole


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.