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

import com.qsoft.rs.sincoar.dto.TgenecantonPKDTO;
import com.qsoft.rs.sincoar.model.TgenecantonPK;
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 TgenecantonPKMapperImpl implements TgenecantonPKMapper {

    @Override
    public TgenecantonPK getEntidad(TgenecantonPKDTO tgenecantonPK) {
        if ( tgenecantonPK == null ) {
            return null;
        }

        TgenecantonPK tgenecantonPK1 = new TgenecantonPK();

        tgenecantonPK1.setCountrycode( tgenecantonPK.getCountrycode() );
        tgenecantonPK1.setProvincecode( tgenecantonPK.getProvincecode() );
        tgenecantonPK1.setCantoncode( tgenecantonPK.getCantoncode() );

        return tgenecantonPK1;
    }

    @Override
    public TgenecantonPKDTO getDto(TgenecantonPK tgenecantonPK) {
        if ( tgenecantonPK == null ) {
            return null;
        }

        TgenecantonPKDTO tgenecantonPKDTO = new TgenecantonPKDTO();

        tgenecantonPKDTO.setCountrycode( tgenecantonPK.getCountrycode() );
        tgenecantonPKDTO.setProvincecode( tgenecantonPK.getProvincecode() );
        tgenecantonPKDTO.setCantoncode( tgenecantonPK.getCantoncode() );

        return tgenecantonPKDTO;
    }
}
