I've configure a few of my objects to be cacheable ( on the mapping file) and from what I can see for this particular object the cache is not working so well.
For other objects I see the hit count increasing on each iteration, but the missed count as 0, whereas for this one I see it misses every single time for the session.
Elements in Memory: 8305
Elements on Disk: 0
Hit Count: 24915
Missed Count 8305
Put Count: 8305
I am looking for some pointers to what might be wrong.
- As background I've checked equals and hashCode implementations, and even debugging seems to be returning the correct results.
- This particular object is used in collections for other objects, as well as a top level one.