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

import com.qsoft.rs.sincoar.dto.TarmlecturadetallePKDTO;
import com.qsoft.rs.sincoar.model.TarmlecturadetallePK;
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 TarmlecturadetallePKMapperImpl implements TarmlecturadetallePKMapper {

    @Override
    public TarmlecturadetallePK getEntidad(TarmlecturadetallePKDTO tarmlecturadetallePK) {
        if ( tarmlecturadetallePK == null ) {
            return null;
        }

        TarmlecturadetallePK tarmlecturadetallePK1 = new TarmlecturadetallePK();

        if ( tarmlecturadetallePK.getClectura() != null ) {
            tarmlecturadetallePK1.setClectura( tarmlecturadetallePK.getClectura() );
        }
        tarmlecturadetallePK1.setCodigotag( tarmlecturadetallePK.getCodigotag() );

        return tarmlecturadetallePK1;
    }

    @Override
    public TarmlecturadetallePKDTO getDto(TarmlecturadetallePK tarmlecturadetallePK) {
        if ( tarmlecturadetallePK == null ) {
            return null;
        }

        TarmlecturadetallePKDTO tarmlecturadetallePKDTO = new TarmlecturadetallePKDTO();

        tarmlecturadetallePKDTO.setClectura( (int) tarmlecturadetallePK.getClectura() );
        tarmlecturadetallePKDTO.setCodigotag( tarmlecturadetallePK.getCodigotag() );

        return tarmlecturadetallePKDTO;
    }
}
