Loading an entity (A) via session.find that has a OneToOne association to another entity (B) which uses joined inheritance fails if two or more implementations of B have the same attribute. Querying the same entity (A) via session.createQuery on the other hand works perfectly fine.
I created a minimal reproducer (see attachment). The case in our codebase is understandably much more complex. |