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

import com.qsoft.rs.sincoar.dto.TgenecityPKDTO;
import com.qsoft.rs.sincoar.model.TgenecityPK;
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 TgenecityPKMapperImpl implements TgenecityPKMapper {

    @Override
    public TgenecityPK getEntidad(TgenecityPKDTO tgenecityPK) {
        if ( tgenecityPK == null ) {
            return null;
        }

        TgenecityPK tgenecityPK1 = new TgenecityPK();

        tgenecityPK1.setCountrycode( tgenecityPK.getCountrycode() );
        tgenecityPK1.setProvincecode( tgenecityPK.getProvincecode() );
        tgenecityPK1.setCantoncode( tgenecityPK.getCantoncode() );
        tgenecityPK1.setCitycode( tgenecityPK.getCitycode() );

        return tgenecityPK1;
    }

    @Override
    public TgenecityPKDTO getDto(TgenecityPK tgenecityPK) {
        if ( tgenecityPK == null ) {
            return null;
        }

        TgenecityPKDTO tgenecityPKDTO = new TgenecityPKDTO();

        tgenecityPKDTO.setCountrycode( tgenecityPK.getCountrycode() );
        tgenecityPKDTO.setProvincecode( tgenecityPK.getProvincecode() );
        tgenecityPKDTO.setCantoncode( tgenecityPK.getCantoncode() );
        tgenecityPKDTO.setCitycode( tgenecityPK.getCitycode() );

        return tgenecityPKDTO;
    }
}
