QEntityProperty qep = null;
Class type = field.getType();
String name = path + field.getName();
if(type.isAnnotationPresent(Entity.class)) {
qep = new QueryEntityObjectField(parent, type, gen.title(), gen.desc(), name);
} else {
qep = new QueryEntityField(parent, type, gen.title(), gen.desc(), name);
}
res.add(qep);
}