Ok, here is what I will do. To get advanced caches working requires more
work than I thought.
Whereas I insist that "ease of use" is the main goal (i.e. that in 80% cases
developers are going to create and call methods to bench complex PKs and
most will not override the hash equals correctly or effectively) and in that
case we are sitting much prettier, I also believe it is not an absolute
priority to introduce some complexity in the cache at this point.
I will make the cache structures pluggable so we can use either the base
cache or the advanced one based on jboss.xml. That is what the architecture
is there for and only the client needs to be a bit smarter but that is minor
changes. The EntityInstanceCache is also imho a missing piece of the puzzle
and I will add that but the implementation of the actual cache will be the
old one. Use the new one as needed, pluggable.
How does this sound?
regards
marc
________________________
Marc Fleury, Ph.D.
Chief Technology Officer
Telkel, Inc.
________________________