List<Object[]> hoursPerWorker = workerDAO
.getWorkingHoursGroupedPerWorker(workerCodes, startingDate,
endingDate);
for (Object[] pair : hoursPerWorker) {
ResourceWorkedHoursDTO resourceWorkedHoursDTO = new ResourceWorkedHoursDTO(
(String) pair[0], EffortDuration.seconds(
((Long) pair[1]).intValue()).toFormattedString());
result.add(resourceWorkedHoursDTO);
}