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

Statistics.getCollectionRoleNames() reports incorrect value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.4
    • Fix Version/s: 5.2.18, 5.3.5, 5.4
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      Statistics:getCollectionRoleNames() returns an incorrect value because it uses MetamodelImpl:getAllCollectionRoles() that uses the "entityPersisterMap" attribute instead of "collectionPersisterMap".

      The fix is quite simple: use the correct attribute in that getter.

      I met this issue with Hibernate 5.2.12 and still saw it in the 5.2.17 and current (2018/08/13) master sources.

      I will submit a PR for master. But it should be applied to other branches as well.

      Note that this is my first Hibernate contribution, I'm not familiar with the process yet.

        Attachments

          Activity

            People

            • Assignee:
              fbeaufume Florian Beaufumé
              Reporter:
              fbeaufume Florian Beaufumé
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: