The real solution for this issue is, as explained in HHH-11612 Open , to set
hibernate.discriminator.force_in_select=true
so the changes will be reverted.