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

import com.qsoft.rs.sincoar.dto.TgenereportdetailPKDTO;
import com.qsoft.rs.sincoar.model.TgenereportdetailPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenereportdetailPK getEntidad(TgenereportdetailPKDTO tgenereportdetailPK) {
        if ( tgenereportdetailPK == null ) {
            return null;
        }

        TgenereportdetailPK tgenereportdetailPK1 = new TgenereportdetailPK();

        tgenereportdetailPK1.setReportcode( tgenereportdetailPK.getReportcode() );
        tgenereportdetailPK1.setModulecode( tgenereportdetailPK.getModulecode() );
        tgenereportdetailPK1.setReportparameter( tgenereportdetailPK.getReportparameter() );

        return tgenereportdetailPK1;
    }

    @Override
    public TgenereportdetailPKDTO getDto(TgenereportdetailPK tgenereportdetailPK) {
        if ( tgenereportdetailPK == null ) {
            return null;
        }

        TgenereportdetailPKDTO tgenereportdetailPKDTO = new TgenereportdetailPKDTO();

        tgenereportdetailPKDTO.setReportcode( tgenereportdetailPK.getReportcode() );
        tgenereportdetailPKDTO.setModulecode( tgenereportdetailPK.getModulecode() );
        tgenereportdetailPKDTO.setReportparameter( tgenereportdetailPK.getReportparameter() );

        return tgenereportdetailPKDTO;
    }
}
