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

import com.qsoft.rs.sincoar.dto.TgeneproductPKDTO;
import com.qsoft.rs.sincoar.model.TgeneproductPK;
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 TgeneproductPKMapperImpl implements TgeneproductPKMapper {

    @Override
    public TgeneproductPK getEntidad(TgeneproductPKDTO tgeneproductPK) {
        if ( tgeneproductPK == null ) {
            return null;
        }

        TgeneproductPK tgeneproductPK1 = new TgeneproductPK();

        tgeneproductPK1.setModulecode( tgeneproductPK.getModulecode() );
        tgeneproductPK1.setProductcode( tgeneproductPK.getProductcode() );

        return tgeneproductPK1;
    }

    @Override
    public TgeneproductPKDTO getDto(TgeneproductPK tgeneproductPK) {
        if ( tgeneproductPK == null ) {
            return null;
        }

        TgeneproductPKDTO tgeneproductPKDTO = new TgeneproductPKDTO();

        tgeneproductPKDTO.setModulecode( tgeneproductPK.getModulecode() );
        tgeneproductPKDTO.setProductcode( tgeneproductPK.getProductcode() );

        return tgeneproductPKDTO;
    }
}
