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

import com.qsoft.rs.sincoar.dto.TgenebaseratePKDTO;
import com.qsoft.rs.sincoar.model.TgenebaseratePK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenebaseratePK getEntidad(TgenebaseratePKDTO tgenebaseratePK) {
        if ( tgenebaseratePK == null ) {
            return null;
        }

        TgenebaseratePK tgenebaseratePK1 = new TgenebaseratePK();

        tgenebaseratePK1.setBaseratecatalog( tgenebaseratePK.getBaseratecatalog() );
        tgenebaseratePK1.setBaseratecatalogcode( tgenebaseratePK.getBaseratecatalogcode() );
        tgenebaseratePK1.setCurrencycode( tgenebaseratePK.getCurrencycode() );

        return tgenebaseratePK1;
    }

    @Override
    public TgenebaseratePKDTO getDto(TgenebaseratePK tgenebaseratePK) {
        if ( tgenebaseratePK == null ) {
            return null;
        }

        TgenebaseratePKDTO tgenebaseratePKDTO = new TgenebaseratePKDTO();

        tgenebaseratePKDTO.setBaseratecatalog( tgenebaseratePK.getBaseratecatalog() );
        tgenebaseratePKDTO.setBaseratecatalogcode( tgenebaseratePK.getBaseratecatalogcode() );
        tgenebaseratePKDTO.setCurrencycode( tgenebaseratePK.getCurrencycode() );

        return tgenebaseratePKDTO;
    }
}
