Uploaded image for project: 'Hibernate ORM'
  1. HHH-9235

Second Level Caching is Broken with Inherited Entities

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 4.3.5
    • Fix Version/s: None
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      Linux
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: