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

import com.qsoft.rs.sincoar.dto.TgenefilesdetailPKDTO;
import com.qsoft.rs.sincoar.model.TgenefilesdetailPK;
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 TgenefilesdetailPKMapperImpl implements TgenefilesdetailPKMapper {

    @Override
    public TgenefilesdetailPK getEntidad(TgenefilesdetailPKDTO tgenefilesdetailPK) {
        if ( tgenefilesdetailPK == null ) {
            return null;
        }

        TgenefilesdetailPK tgenefilesdetailPK1 = new TgenefilesdetailPK();

        if ( tgenefilesdetailPK.getCode() != null ) {
            tgenefilesdetailPK1.setCode( tgenefilesdetailPK.getCode() );
        }
        tgenefilesdetailPK1.setDateto( tgenefilesdetailPK.getDateto() );

        return tgenefilesdetailPK1;
    }

    @Override
    public TgenefilesdetailPKDTO getDto(TgenefilesdetailPK tgenefilesdetailPK) {
        if ( tgenefilesdetailPK == null ) {
            return null;
        }

        TgenefilesdetailPKDTO tgenefilesdetailPKDTO = new TgenefilesdetailPKDTO();

        tgenefilesdetailPKDTO.setCode( (int) tgenefilesdetailPK.getCode() );
        tgenefilesdetailPKDTO.setDateto( tgenefilesdetailPK.getDateto() );

        return tgenefilesdetailPKDTO;
    }
}
