| Radim Vansa I had one doubt as I look back at my proposal. In the new design a DomainDataRegion has one or more access strategies for entity, collection and natural-id data). Each of those access strategies though are specific to a given piece of data (a single entity, ...). Currently we have the access strategy generate the cache key. However, that precludes (unless I am missing something) from using your "smarter" cache keys. To use the smarter keys, EntityDataAccess#generateCacheKey, CollectionDataAccess#generateCacheKey and NaturalIdDataAccess#generateCacheKey to DomainDataRegion. Does that make sense? WDYT? |