Envers Query API: Cannot traverse relation of superclass with table-per-subclass mapping

Description

An exception is thrown when an association of a superclass is traversed when the entity and its superclass are mapped with table-per-subclass mapping. Consider the following example:

Entity B is a subclass of Entity A. Entity A has a relation to Entity C called 'relationToC'. A and B are mapped with table-per-subclass. When an Envers Query is created where Entity B is requested and the relation 'relationToC' is traversed, an exception is thrown when executing the query:

This issue might be related to HHH-2772.

There is no workaround for this issue.

Exception stack trace:

Environment

None

Status

Assignee

Chris Cranford

Reporter

Felix Feisst

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure