It seems that bytecode enhancement has changed from 5.2 to 5.3:
Using bytecode enhancement and bootstrapping Hibernate results in:
This is because bytecode enhancement creates:
In 5.2.17, it looked like
Removing the generic return type from the field and casting to the generic in getEntity() does not work in the test case, but solved the issues in our code stack.