I can confirm that the result is the same with hibernate 5, but I don't know what the result should be. In the attached testcase I added discriminator values since this is required for sinlge table inheritance but that didn't change anything.