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

import com.qsoft.rs.sincoar.dto.TgeneprocessdescPKDTO;
import com.qsoft.rs.sincoar.model.TgeneprocessdescPK;
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 TgeneprocessdescPKMapperImpl implements TgeneprocessdescPKMapper {

    @Override
    public TgeneprocessdescPK getEntidad(TgeneprocessdescPKDTO tgeneprocessdescPK) {
        if ( tgeneprocessdescPK == null ) {
            return null;
        }

        TgeneprocessdescPK tgeneprocessdescPK1 = new TgeneprocessdescPK();

        tgeneprocessdescPK1.setProcesscode( tgeneprocessdescPK.getProcesscode() );
        tgeneprocessdescPK1.setCatalogtypeprocess( tgeneprocessdescPK.getCatalogtypeprocess() );
        tgeneprocessdescPK1.setCatalogcodetypeprocess( tgeneprocessdescPK.getCatalogcodetypeprocess() );
        tgeneprocessdescPK1.setLanguagecode( tgeneprocessdescPK.getLanguagecode() );

        return tgeneprocessdescPK1;
    }

    @Override
    public TgeneprocessdescPKDTO getDto(TgeneprocessdescPK tgeneprocessdescPK) {
        if ( tgeneprocessdescPK == null ) {
            return null;
        }

        TgeneprocessdescPKDTO tgeneprocessdescPKDTO = new TgeneprocessdescPKDTO();

        tgeneprocessdescPKDTO.setProcesscode( tgeneprocessdescPK.getProcesscode() );
        tgeneprocessdescPKDTO.setCatalogtypeprocess( tgeneprocessdescPK.getCatalogtypeprocess() );
        tgeneprocessdescPKDTO.setCatalogcodetypeprocess( tgeneprocessdescPK.getCatalogcodetypeprocess() );
        tgeneprocessdescPKDTO.setLanguagecode( tgeneprocessdescPK.getLanguagecode() );

        return tgeneprocessdescPKDTO;
    }
}
