Add support for exclude entity fields in a generated query