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

import com.qsoft.rs.sincoar.dto.TgenecurrencydescPKDTO;
import com.qsoft.rs.sincoar.model.TgenecurrencydescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenecurrencydescPK getEntidad(TgenecurrencydescPKDTO tgenecurrencydescPK) {
        if ( tgenecurrencydescPK == null ) {
            return null;
        }

        TgenecurrencydescPK tgenecurrencydescPK1 = new TgenecurrencydescPK();

        tgenecurrencydescPK1.setCurrencycode( tgenecurrencydescPK.getCurrencycode() );
        tgenecurrencydescPK1.setLanguagecode( tgenecurrencydescPK.getLanguagecode() );

        return tgenecurrencydescPK1;
    }

    @Override
    public TgenecurrencydescPKDTO getDto(TgenecurrencydescPK tgenecurrencydescPK) {
        if ( tgenecurrencydescPK == null ) {
            return null;
        }

        TgenecurrencydescPKDTO tgenecurrencydescPKDTO = new TgenecurrencydescPKDTO();

        tgenecurrencydescPKDTO.setCurrencycode( tgenecurrencydescPK.getCurrencycode() );
        tgenecurrencydescPKDTO.setLanguagecode( tgenecurrencydescPK.getLanguagecode() );

        return tgenecurrencydescPKDTO;
    }
}
