|
While puts into the cache use the proper region, gets use the actual entity name which is never populated. Resulting in zero caching.
The loadFromSecondLevelCache() in DefaultLoadEventListener.java should be using persister.getRootEntityName() rather than persister.getEntityName() when constructing the CacheKey.
There is no workaround other than to checkout the code and fix.
|