Hi A Susnjar,
Bytecode enhancement issues are tricky so a test case would really help.
We have a test case template here that could help : https://github.com/hibernate/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5 .