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

import com.qsoft.rs.sincoar.dto.TgenemessagedescPKDTO;
import com.qsoft.rs.sincoar.model.TgenemessagedescPK;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2022-09-02T16:14:50-0500",
    comments = "version: 1.5.2.Final, compiler: javac, environment: Java 17.0.4 (Private Build)"
)
public class TgenemessagedescPKMapperImpl implements TgenemessagedescPKMapper {

    @Override
    public TgenemessagedescPK getEntidad(TgenemessagedescPKDTO tgenemessagedescPK) {
        if ( tgenemessagedescPK == null ) {
            return null;
        }

        TgenemessagedescPK tgenemessagedescPK1 = new TgenemessagedescPK();

        tgenemessagedescPK1.setMessagecode( tgenemessagedescPK.getMessagecode() );
        tgenemessagedescPK1.setLanguage( tgenemessagedescPK.getLanguage() );

        return tgenemessagedescPK1;
    }

    @Override
    public TgenemessagedescPKDTO getDto(TgenemessagedescPK tgenemessagedescPK) {
        if ( tgenemessagedescPK == null ) {
            return null;
        }

        TgenemessagedescPKDTO tgenemessagedescPKDTO = new TgenemessagedescPKDTO();

        tgenemessagedescPKDTO.setMessagecode( tgenemessagedescPK.getMessagecode() );
        tgenemessagedescPKDTO.setLanguage( tgenemessagedescPK.getLanguage() );

        return tgenemessagedescPKDTO;
    }
}
