TFJ-748 Query#resultType should take enum type