mapping from dto objects working in data geeneration