package com.artfess.manage.dwd.manager.mapper;

import com.artfess.manage.dwd.manager.dto.DwdSjFestivalHolidayDto;
import com.artfess.manage.dwd.model.DwdSjFestivalHoliday;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import org.springframework.stereotype.Component;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-05-08T09:35:57+0800",
    comments = "version: 1.2.0.Final, compiler: javac, environment: Java 1.8.0_71 (Oracle Corporation)"
)
@Component
public class DwdSjFestivalHolidayDtoMapperImpl implements DwdSjFestivalHolidayDtoMapper {

    @Override
    public DwdSjFestivalHoliday toEntity(DwdSjFestivalHolidayDto dto) {
        if ( dto == null ) {
            return null;
        }

        DwdSjFestivalHoliday dwdSjFestivalHoliday = new DwdSjFestivalHoliday();

        dwdSjFestivalHoliday.setCreateBy( dto.getCreateBy() );
        dwdSjFestivalHoliday.setCreateOrgId( dto.getCreateOrgId() );
        dwdSjFestivalHoliday.setCreateTime( dto.getCreateTime() );
        dwdSjFestivalHoliday.setUpdateBy( dto.getUpdateBy() );
        dwdSjFestivalHoliday.setUpdateTime( dto.getUpdateTime() );
        dwdSjFestivalHoliday.setIsDelete( dto.getIsDelete() );
        dwdSjFestivalHoliday.setVersion( dto.getVersion() );
        dwdSjFestivalHoliday.setLastTime( dto.getLastTime() );
        dwdSjFestivalHoliday.setId( dto.getId() );
        dwdSjFestivalHoliday.setVacationDate( dto.getVacationDate() );
        dwdSjFestivalHoliday.setHoliday( dto.getHoliday() );
        dwdSjFestivalHoliday.setName( dto.getName() );
        dwdSjFestivalHoliday.setTip( dto.getTip() );
        dwdSjFestivalHoliday.setRest( dto.getRest() );
        dwdSjFestivalHoliday.setContent( dto.getContent() );
        dwdSjFestivalHoliday.setSn( dto.getSn() );
        dwdSjFestivalHoliday.setMemo( dto.getMemo() );

        return dwdSjFestivalHoliday;
    }

    @Override
    public DwdSjFestivalHolidayDto toDto(DwdSjFestivalHoliday entity) {
        if ( entity == null ) {
            return null;
        }

        DwdSjFestivalHolidayDto dwdSjFestivalHolidayDto = new DwdSjFestivalHolidayDto();

        dwdSjFestivalHolidayDto.setCreateBy( entity.getCreateBy() );
        dwdSjFestivalHolidayDto.setCreateOrgId( entity.getCreateOrgId() );
        dwdSjFestivalHolidayDto.setCreateTime( entity.getCreateTime() );
        dwdSjFestivalHolidayDto.setUpdateBy( entity.getUpdateBy() );
        dwdSjFestivalHolidayDto.setUpdateTime( entity.getUpdateTime() );
        dwdSjFestivalHolidayDto.setIsDelete( entity.getIsDelete() );
        dwdSjFestivalHolidayDto.setVersion( entity.getVersion() );
        dwdSjFestivalHolidayDto.setLastTime( entity.getLastTime() );
        dwdSjFestivalHolidayDto.setId( entity.getId() );
        dwdSjFestivalHolidayDto.setVacationDate( entity.getVacationDate() );
        dwdSjFestivalHolidayDto.setHoliday( entity.getHoliday() );
        dwdSjFestivalHolidayDto.setName( entity.getName() );
        dwdSjFestivalHolidayDto.setTip( entity.getTip() );
        dwdSjFestivalHolidayDto.setRest( entity.getRest() );
        dwdSjFestivalHolidayDto.setContent( entity.getContent() );
        dwdSjFestivalHolidayDto.setSn( entity.getSn() );
        dwdSjFestivalHolidayDto.setMemo( entity.getMemo() );

        return dwdSjFestivalHolidayDto;
    }

    @Override
    public List<DwdSjFestivalHoliday> toEntity(List<DwdSjFestivalHolidayDto> dtoList) {
        if ( dtoList == null ) {
            return null;
        }

        List<DwdSjFestivalHoliday> list = new ArrayList<DwdSjFestivalHoliday>( dtoList.size() );
        for ( DwdSjFestivalHolidayDto dwdSjFestivalHolidayDto : dtoList ) {
            list.add( toEntity( dwdSjFestivalHolidayDto ) );
        }

        return list;
    }

    @Override
    public List<DwdSjFestivalHolidayDto> toDto(List<DwdSjFestivalHoliday> entityList) {
        if ( entityList == null ) {
            return null;
        }

        List<DwdSjFestivalHolidayDto> list = new ArrayList<DwdSjFestivalHolidayDto>( entityList.size() );
        for ( DwdSjFestivalHoliday dwdSjFestivalHoliday : entityList ) {
            list.add( toDto( dwdSjFestivalHoliday ) );
        }

        return list;
    }
}
