Joined table values not persisted when using JOINED JPA inheritance after upgrade beyond 5.2.12

Description

I have the following defined entities:

When using any Hibernate version above 5.2.12 we are experiencing a strange behavior once transaction is committed after persisting an entity - only the common fields are persisted - the "JOINED" part is not. Thus, if attempting to retrieve the persisted entity by its assigned ID we are getting null. An inspection of the actual database table confirms this is the case: the common fields exist for the persisted assigned ID, but the JOINED part is missing

Here is where it is really getting interesting - there are other entities in the (same) system that used JOINED inheritance - and there it does not seem to happen. The only difference between the working ones to the failed ones is that the failed ones (i.e., the ones mentioned in this issue) also extend a @MappedSupperclass

Other than that, I can see no other difference.

As mentioned, this started happening as of 5.2.13 and up.

Environment

OpenJDK 8 build 171
Spring Data Kay-SR6
QueryDSL 4.2.1
Fedora 27

Assignee

Unassigned

Reporter

Lyor Goldstein

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Feedback Requested

2018/06/13

Worked in

5.2.12

Feedback Requested By

Christian Beikov

Components

Affects versions

Priority

Major
Configure