Jira issue originally created by user mouyang:
I'm not sure if this is intentional or not, but this appears to a valid discriminator map. The problem I am running into is that it's impossible to create an instance of ClassB with a discriminator value "DiscB" (it's always "DiscC" - I'm assuming last one wins here).
<entity name="ClassB" ...>
<discriminator-mapping value="DiscA" class="ClassA" />
<discriminator-mapping value="DiscB" class="ClassB" />
<discriminator-mapping value="DiscC" class="ClassB" />
Eventhough DiscB and DiscC map to the same class, I do want to maintain some sort of logical separation in the database using the two discriminator values. That does not appear to be possible. I can provide more details about my data model, if necessary.
These are the possible solutions I can think of.