See attached Testcase. Since the trait in the query specifies that the type ‘ProductOwnerExt1’ has to be used, hibernate should not fail because of an unrelated attribut in an unrelated Entity which just happens to have the same name.