Is there any fix or workaround (short of completely re-writing code) to get
<composite-id> to work with hbm.xml? See HHH-8851 for an explanation of how this is currently broken
======== Additional background =======
We have a very large legacy application (over 200 Java ‘projects’ mostly developed about a decade ago) and are in the laborious process of upgrading it from Hibernate 3 to 5. The intent with this release is to perform the minimum changes necessary for the framework upgrade, then subsequently complete more complex code revisions to the code base in later releases of the application.
One of the problems we encountered was that Hibernate 5 (we are currently targeting 5.3.3.Final) requires any use of
<composite-id> to specify the class used. Updating the XML to provide identify the class subsequently results in an error of the form:
java.lang.IllegalArgumentException: expecting IdClass mapping
Digging through error reports, I find that this is a currently unresolved bug known since approximately a year ago and documented (somewhat unclearly) under HHH-8851. There is also a forum thread (old forums) related to HHH-8851, but since I’m a new user I can’t add it as a link=>