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

import com.qsoft.rs.sincoar.dto.TgeneprovincedescPKDTO;
import com.qsoft.rs.sincoar.model.TgeneprovincedescPK;
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 TgeneprovincedescPKMapperImpl implements TgeneprovincedescPKMapper {

    @Override
    public TgeneprovincedescPK getEntidad(TgeneprovincedescPKDTO tgeneprovincedescPK) {
        if ( tgeneprovincedescPK == null ) {
            return null;
        }

        TgeneprovincedescPK tgeneprovincedescPK1 = new TgeneprovincedescPK();

        tgeneprovincedescPK1.setCountrycode( tgeneprovincedescPK.getCountrycode() );
        tgeneprovincedescPK1.setProvincecode( tgeneprovincedescPK.getProvincecode() );
        tgeneprovincedescPK1.setLanguage( tgeneprovincedescPK.getLanguage() );

        return tgeneprovincedescPK1;
    }

    @Override
    public TgeneprovincedescPKDTO getDto(TgeneprovincedescPK tgeneprovincedescPK) {
        if ( tgeneprovincedescPK == null ) {
            return null;
        }

        TgeneprovincedescPKDTO tgeneprovincedescPKDTO = new TgeneprovincedescPKDTO();

        tgeneprovincedescPKDTO.setCountrycode( tgeneprovincedescPK.getCountrycode() );
        tgeneprovincedescPKDTO.setProvincecode( tgeneprovincedescPK.getProvincecode() );
        tgeneprovincedescPKDTO.setLanguage( tgeneprovincedescPK.getLanguage() );

        return tgeneprovincedescPKDTO;
    }
}
