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

import com.qsoft.rs.sincoar.dto.TgenebaseratedetailPKDTO;
import com.qsoft.rs.sincoar.model.TgenebaseratedetailPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenebaseratedetailPK getEntidad(TgenebaseratedetailPKDTO tgenebaseratedetailPK) {
        if ( tgenebaseratedetailPK == null ) {
            return null;
        }

        TgenebaseratedetailPK tgenebaseratedetailPK1 = new TgenebaseratedetailPK();

        tgenebaseratedetailPK1.setBaseratecatalog( tgenebaseratedetailPK.getBaseratecatalog() );
        tgenebaseratedetailPK1.setBaseratecatalogcode( tgenebaseratedetailPK.getBaseratecatalogcode() );
        tgenebaseratedetailPK1.setCurrencycode( tgenebaseratedetailPK.getCurrencycode() );
        if ( tgenebaseratedetailPK.getRatesequence() != null ) {
            tgenebaseratedetailPK1.setRatesequence( tgenebaseratedetailPK.getRatesequence() );
        }

        return tgenebaseratedetailPK1;
    }

    @Override
    public TgenebaseratedetailPKDTO getDto(TgenebaseratedetailPK tgenebaseratedetailPK) {
        if ( tgenebaseratedetailPK == null ) {
            return null;
        }

        TgenebaseratedetailPKDTO tgenebaseratedetailPKDTO = new TgenebaseratedetailPKDTO();

        tgenebaseratedetailPKDTO.setBaseratecatalog( tgenebaseratedetailPK.getBaseratecatalog() );
        tgenebaseratedetailPKDTO.setBaseratecatalogcode( tgenebaseratedetailPK.getBaseratecatalogcode() );
        tgenebaseratedetailPKDTO.setCurrencycode( tgenebaseratedetailPK.getCurrencycode() );
        tgenebaseratedetailPKDTO.setRatesequence( tgenebaseratedetailPK.getRatesequence() );

        return tgenebaseratedetailPKDTO;
    }
}
