Query using entity name also returns entities of same type but different entity name

Details

Description

A criteria or HQL query that queries by entity name instead of .NET type name returns all entities of the underlying .NET Type regardless of their entity names. Essentially, the query is always treated as a polymorphic query for instances of the underlying .NET type.