ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Change the injection class to injection of interface.
This commit is contained in:
parent
058bd1bdaa
commit
3d1d6fb9ab
3 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
|||
import org.apache.commons.lang.Validate;
|
||||
import org.hibernate.validator.ClassValidator;
|
||||
import org.hibernate.validator.InvalidValue;
|
||||
import org.navalplanner.business.advance.daos.AdvanceTypeDAO;
|
||||
import org.navalplanner.business.advance.daos.IAdvanceTypeDAO;
|
||||
import org.navalplanner.business.advance.entities.AdvanceType;
|
||||
import org.navalplanner.business.common.exceptions.InstanceNotFoundException;
|
||||
import org.navalplanner.business.common.exceptions.ValidationException;
|
||||
|
|
@ -31,7 +31,7 @@ public class AdvanceTypeModel implements IAdvanceTypeModel {
|
|||
AdvanceType.class);
|
||||
|
||||
@Autowired
|
||||
private AdvanceTypeDAO advanceTypeDAO;
|
||||
private IAdvanceTypeDAO advanceTypeDAO;
|
||||
|
||||
@Override
|
||||
public AdvanceType getAdvanceType() {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import org.navalplanner.business.resources.entities.Criterion;
|
|||
import org.navalplanner.business.resources.entities.CriterionType;
|
||||
import org.navalplanner.business.resources.entities.Resource;
|
||||
import org.navalplanner.business.resources.entities.Worker;
|
||||
import org.navalplanner.business.workreports.daos.WorkReportDAO;
|
||||
import org.navalplanner.business.workreports.daos.IWorkReportDAO;
|
||||
import org.navalplanner.business.workreports.entities.WorkReport;
|
||||
import org.navalplanner.business.workreports.entities.WorkReportLine;
|
||||
import org.navalplanner.business.workreports.entities.WorkReportType;
|
||||
|
|
@ -43,7 +43,7 @@ public class WorkReportModel implements IWorkReportModel {
|
|||
WorkReportLine.class);
|
||||
|
||||
@Autowired
|
||||
private WorkReportDAO workReportDAO;
|
||||
private IWorkReportDAO workReportDAO;
|
||||
|
||||
@Autowired
|
||||
private OrderElementDAO orderElementDAO;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import org.navalplanner.business.common.exceptions.InstanceNotFoundException;
|
|||
import org.navalplanner.business.common.exceptions.ValidationException;
|
||||
import org.navalplanner.business.resources.entities.CriterionType;
|
||||
import org.navalplanner.business.resources.services.ICriterionTypeService;
|
||||
import org.navalplanner.business.workreports.daos.WorkReportTypeDAO;
|
||||
import org.navalplanner.business.workreports.daos.IWorkReportTypeDAO;
|
||||
import org.navalplanner.business.workreports.entities.WorkReportType;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.config.BeanDefinition;
|
||||
|
|
@ -37,7 +37,7 @@ public class WorkReportTypeModel implements IWorkReportTypeModel {
|
|||
WorkReportType.class);
|
||||
|
||||
@Autowired
|
||||
private WorkReportTypeDAO workReportTypeDAO;
|
||||
private IWorkReportTypeDAO workReportTypeDAO;
|
||||
|
||||
private boolean editing = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue