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

import com.qsoft.rs.sincoar.dto.TgeneresultsPKDTO;
import com.qsoft.rs.sincoar.model.TgeneresultsPK;
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 TgeneresultsPKMapperImpl implements TgeneresultsPKMapper {

    @Override
    public TgeneresultsPK getEntidad(TgeneresultsPKDTO tgeneresultsPK) {
        if ( tgeneresultsPK == null ) {
            return null;
        }

        TgeneresultsPK tgeneresultsPK1 = new TgeneresultsPK();

        tgeneresultsPK1.setResultcode( tgeneresultsPK.getResultcode() );
        tgeneresultsPK1.setLanguagecode( tgeneresultsPK.getLanguagecode() );

        return tgeneresultsPK1;
    }

    @Override
    public TgeneresultsPKDTO getDto(TgeneresultsPK tgeneresultsPK) {
        if ( tgeneresultsPK == null ) {
            return null;
        }

        TgeneresultsPKDTO tgeneresultsPKDTO = new TgeneresultsPKDTO();

        tgeneresultsPKDTO.setResultcode( tgeneresultsPK.getResultcode() );
        tgeneresultsPKDTO.setLanguagecode( tgeneresultsPK.getLanguagecode() );

        return tgeneresultsPKDTO;
    }
}
