I use hibernate-envers in my project. I tried to enable bytecode enhancement, but during program execution I get following error _java.lang.ClassCastException: org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer$1 cannot be cast to java.lang.String_. It seems that error appears when I update only non-lazy fields in entity.
I attach maven project with simple data model and test failing with error described above. It need to be run by maven test goal to fail as it need to perform bytecode enhancement. |
|