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

import com.qsoft.rs.sincoar.dto.TgenecountrydescPKDTO;
import com.qsoft.rs.sincoar.model.TgenecountrydescPK;
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 TgenecountrydescPKMapperImpl implements TgenecountrydescPKMapper {

    @Override
    public TgenecountrydescPK getEntidad(TgenecountrydescPKDTO tgenecountrydescPK) {
        if ( tgenecountrydescPK == null ) {
            return null;
        }

        TgenecountrydescPK tgenecountrydescPK1 = new TgenecountrydescPK();

        tgenecountrydescPK1.setCountrycode( tgenecountrydescPK.getCountrycode() );
        tgenecountrydescPK1.setLanguage( tgenecountrydescPK.getLanguage() );

        return tgenecountrydescPK1;
    }

    @Override
    public TgenecountrydescPKDTO getDto(TgenecountrydescPK tgenecountrydescPK) {
        if ( tgenecountrydescPK == null ) {
            return null;
        }

        TgenecountrydescPKDTO tgenecountrydescPKDTO = new TgenecountrydescPKDTO();

        tgenecountrydescPKDTO.setCountrycode( tgenecountrydescPK.getCountrycode() );
        tgenecountrydescPKDTO.setLanguage( tgenecountrydescPK.getLanguage() );

        return tgenecountrydescPKDTO;
    }
}
