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

Inheritance.JOINED + @DiscriminatorColumn : ERROR on quering

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.4, 4.2.12, 5.0.1
    • Fix Version/s: 5.0.5
    • Component/s: None
    • Environment:
      H2, Oracle Database
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Requires Release Note:
      Affirmative
    • Last commented by a user?:
      true
    • Sprint:

      Description

      We have following structure in our project:
      abstact class X

      abstract class Y

      class Z

      X, Y, Z are Entities. X Entity has Inheritance.JOINED and @DicriminatorColumn("INTH_TYPE);
      On persistence record is populated correct with generated discrimiantor column in table defined in X Entity.
      Exception appears on querying records from Db using Y Entity as EntityClass from EntityManager. Here is a test on Maven.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: