SelectGroup selectGroup = unioned.getGroup();
Table table = selectGroup.getTable();
addMember(dve, table.getTableName());
addJoined(dve, table.getTableName().getAlias(), table.getJoined());
for (FieldAll fieldAll: selectGroup.getFieldAlls()) {
dve.addAliasAll(fieldAll.getAlias(), null);
}
for (Relation relation: selectStatement.getRelations().values()) {
dve.addRelation(relation.getType(), relation.getTitle(), relation.getEntityName(), buildKeyMaps(relation));
}
List<String> groupBy = selectGroup.getGroupBy();