package com.qsoft.rs.sincoar.dominio.mapper;

import com.qsoft.rs.sincoar.dto.TgenereadexcelDTO;
import com.qsoft.rs.sincoar.model.Tgenereadexcel;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2022-09-02T16:14:47-0500",
    comments = "version: 1.5.2.Final, compiler: javac, environment: Java 17.0.4 (Private Build)"
)
public class TgenereadexcelMapperImpl implements TgenereadexcelMapper {

    @Override
    public Tgenereadexcel getEntidad(TgenereadexcelDTO tgenereadexcel) {
        if ( tgenereadexcel == null ) {
            return null;
        }

        Tgenereadexcel tgenereadexcel1 = new Tgenereadexcel();

        tgenereadexcel1.setFilecode( tgenereadexcel.getFilecode() );
        tgenereadexcel1.setFirstrow( tgenereadexcel.getFirstrow() );
        tgenereadexcel1.setMaxrow( tgenereadexcel.getMaxrow() );
        tgenereadexcel1.setFirstcolumn( tgenereadexcel.getFirstcolumn() );
        tgenereadexcel1.setMaxcolum( tgenereadexcel.getMaxcolum() );
        tgenereadexcel1.setClassname( tgenereadexcel.getClassname() );

        return tgenereadexcel1;
    }

    @Override
    public TgenereadexcelDTO getDto(Tgenereadexcel tgenereadexcel) {
        if ( tgenereadexcel == null ) {
            return null;
        }

        TgenereadexcelDTO tgenereadexcelDTO = new TgenereadexcelDTO();

        tgenereadexcelDTO.setFilecode( tgenereadexcel.getFilecode() );
        tgenereadexcelDTO.setFirstrow( tgenereadexcel.getFirstrow() );
        tgenereadexcelDTO.setMaxrow( tgenereadexcel.getMaxrow() );
        tgenereadexcelDTO.setFirstcolumn( tgenereadexcel.getFirstcolumn() );
        tgenereadexcelDTO.setMaxcolum( tgenereadexcel.getMaxcolum() );
        tgenereadexcelDTO.setClassname( tgenereadexcel.getClassname() );

        return tgenereadexcelDTO;
    }
}
