Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-1530

JpaMetamodelEntityInformation does not unwrap ByteBuddy proxies

    Details

      Description

      Starting from Hibernate 5.3, when ByteBuddy is used, proxy classes are generated with the names like Company$HibernateProxy$hH5oW11r.

      However, JpaMetamodelEntityInformation still uses ClassUtils.getUserClass to unproxy the class, which assumes proxied class name contains $$. (1, 2)

      It causes regression of DATAJPA-1416.

      A new way to detect proxy, which was implemented in DATAJPA-1347, should be used.

        Attachments

          Activity

            People

            • Assignee:
              schauder Jens Schauder
              Reporter:
              dittos dittos
              Last updater:
              Oliver Drotbohm
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: