Renaming method to more correct name
This commit is contained in:
parent
5bedccedf4
commit
72f644a289
3 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ public class DayAssignmentDAO extends GenericDAOHibernate<DayAssignment, Long>
|
|||
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public SortedMap<LocalDate, Integer> getDayAssignmentsByTaksElementGroupByDay(
|
||||
public SortedMap<LocalDate, Integer> getHoursAssignedByDayFor(
|
||||
TaskElement taskElement) {
|
||||
SortedMap<LocalDate, Integer> result = new TreeMap<LocalDate, Integer>();
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import org.navalplanner.business.planner.entities.TaskElement;
|
|||
public interface IDayAssignmentDAO extends
|
||||
IGenericDAO<DayAssignment, Long> {
|
||||
|
||||
SortedMap<LocalDate, Integer> getDayAssignmentsByTaksElementGroupByDay(
|
||||
SortedMap<LocalDate, Integer> getHoursAssignedByDayFor(
|
||||
TaskElement taskElement);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
Integer hoursLastDay = 0;
|
||||
|
||||
Map<LocalDate, Integer> daysMap = dayAssignmentDAO
|
||||
.getDayAssignmentsByTaksElementGroupByDay(taskElement);
|
||||
.getHoursAssignedByDayFor(taskElement);
|
||||
if (daysMap.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue