|
With a inheritance hierarchy A > B > C, a association referencing B and explicit discriminators enabled the generated load statement wrongfully selects the discriminator column from B instead of A.
AbstractEntityPersister.propertySelectFragmentFragment: addDiscriminatorToSelect( select, tableAlias, suffix );
where tableAlias is the alias for the referencedEntity table that, in this constellation, does not match the root table which holds the discriminator column.
|