hibernate/hibernate-orm — pull request #797 by EtienneMiret (2014-08-23 21:54:42+00:00)
Title: HHH-9357 Fix type() with joined inheritance and discriminator column.

We now make use of the discriminator column if available when testing the type of an entity in the where clause.