Thanks . Great analysis as usual.
I'll dig into the Hibernate documentation to see how (if) there is a workaround to this because it seems the most natural thing in the world to be able to do.
Reduced to bare bones:
So Corda is asking the JVM for the field's declaring class rather than Hibernate for the column's entity class.
Kotlin reflection of fields does not seem to allow access to the `container` class (which is the true @Entity object in this inheritance scenario).
So the most reliable way of getting the @Entity class is probably to ask the developer what it is.