Envers - Getting NPE while reading revisions of entity with @EmbeddedId composite key located in parent @MappedSuperclass

Description

I am getting NPE while reading revisions of entity with @EmbeddedId composite key located in parent @MappedSuperclass.

Minimalistic reproducible sample is located here: https://github.com/pmihalcin/envers-audit-reader-npe-composite-key

First commit adds working example.
Second commit moves composite key to parent @MappedSuperclass and test case: https://github.com/pmihalcin/envers-audit-reader-npe-composite-key/blob/master/src/test/java/com/example/enverstest/TriggerRepositoryTest.java starts failing on NPE.

Environment

JVM - 1.8, Ubuntu, H2 locally, hibernate 5.0.12, hibernate 5.3.10

Status

Assignee

Chris Cranford

Reporter

Patrik Mihalcin

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.0.12
5.3.10

Priority

Major
Configure