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

import com.qsoft.rs.sincoar.dto.TgenereportPKDTO;
import com.qsoft.rs.sincoar.model.TgenereportPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenereportPK getEntidad(TgenereportPKDTO tgenereportPK) {
        if ( tgenereportPK == null ) {
            return null;
        }

        TgenereportPK tgenereportPK1 = new TgenereportPK();

        tgenereportPK1.setReportcode( tgenereportPK.getReportcode() );
        tgenereportPK1.setModulecode( tgenereportPK.getModulecode() );

        return tgenereportPK1;
    }

    @Override
    public TgenereportPKDTO getDto(TgenereportPK tgenereportPK) {
        if ( tgenereportPK == null ) {
            return null;
        }

        TgenereportPKDTO tgenereportPKDTO = new TgenereportPKDTO();

        tgenereportPKDTO.setReportcode( tgenereportPK.getReportcode() );
        tgenereportPKDTO.setModulecode( tgenereportPK.getModulecode() );

        return tgenereportPKDTO;
    }
}
