Search in sources :

Example 1 with ApplicationDTO

use of org.c4sg.dto.ApplicationDTO in project c4sg-services by Code4SocialGood.

the class ApplicationMapper method getApplicationDtosFromEntities.

public List<ApplicationDTO> getApplicationDtosFromEntities(List<Application> applications) {
    List<ApplicationDTO> applicationList = new ArrayList<ApplicationDTO>();
    Iterator<Application> applicationIter = applications.iterator();
    while (applicationIter.hasNext()) {
        Application application = applicationIter.next();
        applicationList.add(getApplicationDtoFromEntity(application));
    }
    return applicationList;
}
Also used : ApplicationDTO(org.c4sg.dto.ApplicationDTO) ArrayList(java.util.ArrayList) Application(org.c4sg.entity.Application)

Aggregations

ArrayList (java.util.ArrayList)1 ApplicationDTO (org.c4sg.dto.ApplicationDTO)1 Application (org.c4sg.entity.Application)1