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
|