Deleting an entity leads to NullPointerException in ByteBuddy proxy

Description

Hi everyone,
I guess ther eis a regression in Hibernate 5.3.x concerning inheritence and composite primary keys.

Problem is that a NullPointerException occurs when a method is called from the constructor of a (Byte Buddy) proxied abstract entity class.

I will reference a GitHub fork, but want to create the issue first in order to get an issue number.

In this fork you can find the JPAUnitTestCase. You should reproduce the bug with this tets case.

Environment

Java: 1.8

Assignee

Guillaume Smet

Reporter

Oliver Libutzki

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.17

Components

Affects versions

Priority

Major
Configure