Please download the bug-reproduce code and fix suggestion from the attachment.
(1) Create an entity class with blob field, do the hibernate-instrument-task to make it to be a lazy property in compilation time(In my demo-code, I choose maven). (2) Make the database have one row to test (3) Create a detached entity, assign the right identifier and let the blob property is initialized, then use a NEW Entity Manager to marge it
An exception rasied: java.lang.ClassCastException: org.hibernate.bytecode.instrumentation.spi.LazyPropertyInitializer$1 cannot be cast to [B
|