we just stumbled across [HHH-12555] Merging a blob on an entity results in a class cast exception - Hibernate JIRA in an attempt to get rid of duplicate entities that have images and documents mapped as byte and stored in the DB (using lazy loading and bytecode enhancement). See my comment there (Ka Wu).
The aforementioned issue was fixed for the 5.3 and 5.4 releases, however, we’re “stuck” on WebLogic 12c, which is a Java EE 7 server and there’s NO WAY to upgrade to Java EE 8 anytime soon.
We badly need this bugfix.
Is there any chance to get the present fix backported to 5.2, maybe a 5.2.18? Latest version is 5.2.17 (the one we’re using).