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

import com.qsoft.rs.sincoar.dto.TgenecurrencyrategroupPKDTO;
import com.qsoft.rs.sincoar.model.TgenecurrencyrategroupPK;
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 TgenecurrencyrategroupPKMapperImpl implements TgenecurrencyrategroupPKMapper {

    @Override
    public TgenecurrencyrategroupPK getEntidad(TgenecurrencyrategroupPKDTO tgenecurrencyrategroupPK) {
        if ( tgenecurrencyrategroupPK == null ) {
            return null;
        }

        TgenecurrencyrategroupPK tgenecurrencyrategroupPK1 = new TgenecurrencyrategroupPK();

        tgenecurrencyrategroupPK1.setCurrencyratecatalog( tgenecurrencyrategroupPK.getCurrencyratecatalog() );
        tgenecurrencyrategroupPK1.setCurrencyratecatalogcode( tgenecurrencyrategroupPK.getCurrencyratecatalogcode() );
        tgenecurrencyrategroupPK1.setCurrencycode( tgenecurrencyrategroupPK.getCurrencycode() );
        tgenecurrencyrategroupPK1.setDateto( tgenecurrencyrategroupPK.getDateto() );

        return tgenecurrencyrategroupPK1;
    }

    @Override
    public TgenecurrencyrategroupPKDTO getDto(TgenecurrencyrategroupPK tgenecurrencyrategroupPK) {
        if ( tgenecurrencyrategroupPK == null ) {
            return null;
        }

        TgenecurrencyrategroupPKDTO tgenecurrencyrategroupPKDTO = new TgenecurrencyrategroupPKDTO();

        tgenecurrencyrategroupPKDTO.setCurrencyratecatalog( tgenecurrencyrategroupPK.getCurrencyratecatalog() );
        tgenecurrencyrategroupPKDTO.setCurrencyratecatalogcode( tgenecurrencyrategroupPK.getCurrencyratecatalogcode() );
        tgenecurrencyrategroupPKDTO.setCurrencycode( tgenecurrencyrategroupPK.getCurrencycode() );
        tgenecurrencyrategroupPKDTO.setDateto( tgenecurrencyrategroupPK.getDateto() );

        return tgenecurrencyrategroupPKDTO;
    }
}
