We're updating the issue view to help you get more done. 

Inheritance.JOINED + @DiscriminatorColumn : ERROR on quering

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.

Environment

H2, Oracle Database

Status

Assignee

Andrea Boriero

Reporter

DAN Cebotarenco

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

backportReEvaluate

None

Fix versions

Affects versions

4.3.4
4.2.12
5.0.1

Priority

Major