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

import com.qsoft.rs.sincoar.dto.TgenesubproductcurrencyPKDTO;
import com.qsoft.rs.sincoar.model.TgenesubproductcurrencyPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenesubproductcurrencyPK getEntidad(TgenesubproductcurrencyPKDTO tgenesubproductcurrencyPK) {
        if ( tgenesubproductcurrencyPK == null ) {
            return null;
        }

        TgenesubproductcurrencyPK tgenesubproductcurrencyPK1 = new TgenesubproductcurrencyPK();

        tgenesubproductcurrencyPK1.setModulecode( tgenesubproductcurrencyPK.getModulecode() );
        tgenesubproductcurrencyPK1.setProductcode( tgenesubproductcurrencyPK.getProductcode() );
        tgenesubproductcurrencyPK1.setSubproductcode( tgenesubproductcurrencyPK.getSubproductcode() );
        tgenesubproductcurrencyPK1.setCurrencycode( tgenesubproductcurrencyPK.getCurrencycode() );

        return tgenesubproductcurrencyPK1;
    }

    @Override
    public TgenesubproductcurrencyPKDTO getDto(TgenesubproductcurrencyPK tgenesubproductcurrencyPK) {
        if ( tgenesubproductcurrencyPK == null ) {
            return null;
        }

        TgenesubproductcurrencyPKDTO tgenesubproductcurrencyPKDTO = new TgenesubproductcurrencyPKDTO();

        tgenesubproductcurrencyPKDTO.setModulecode( tgenesubproductcurrencyPK.getModulecode() );
        tgenesubproductcurrencyPKDTO.setProductcode( tgenesubproductcurrencyPK.getProductcode() );
        tgenesubproductcurrencyPKDTO.setSubproductcode( tgenesubproductcurrencyPK.getSubproductcode() );
        tgenesubproductcurrencyPKDTO.setCurrencycode( tgenesubproductcurrencyPK.getCurrencycode() );

        return tgenesubproductcurrencyPKDTO;
    }
}
