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

Exception at bootstrap when @Any is inside an @Embeddable object

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      I've faced the same issue described in @HHH-8858, and I believe I've found the reason.

      I'm updating a legacy system from Hibernate 3.6.10 to 5.X. I tested both 4.3, 5.0, 5.1 and 5.2, and same error message: "any types do not have a unique referenced persister".

      I tried the examples on the users guide, and they work. The only difference i, also in other issue record as well, my @Any annotation is inside an @Embedable class. When I removed the embeddable and move @Any definition directly to the object with @Entity, it works.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: