We're updating the issue view to help you get more done. 

Second Level Caching is Broken with Inherited Entities

Description

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.

Environment

Linux

Status

Assignee

Gail Badner

Reporter

Tarek Hammoud

Components

Affects versions

4.3.5

Priority

Critical