HHH-7214 - Validation of duplicated discriminator values

Patch and test for HHH-7214 JIRA ticket.
Link: https://hibernate.atlassian.net/browse/HHH-7214

Best regards,
Lukasz Antoniak