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

import com.qsoft.rs.sincoar.dto.TgeneprocessPKDTO;
import com.qsoft.rs.sincoar.model.TgeneprocessPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgeneprocessPK getEntidad(TgeneprocessPKDTO tgeneprocessPK) {
        if ( tgeneprocessPK == null ) {
            return null;
        }

        TgeneprocessPK tgeneprocessPK1 = new TgeneprocessPK();

        tgeneprocessPK1.setProcesscode( tgeneprocessPK.getProcesscode() );
        tgeneprocessPK1.setCatalogtypeprocess( tgeneprocessPK.getCatalogtypeprocess() );
        tgeneprocessPK1.setCatalogcodetypeprocess( tgeneprocessPK.getCatalogcodetypeprocess() );

        return tgeneprocessPK1;
    }

    @Override
    public TgeneprocessPKDTO getDto(TgeneprocessPK tgeneprocessPK) {
        if ( tgeneprocessPK == null ) {
            return null;
        }

        TgeneprocessPKDTO tgeneprocessPKDTO = new TgeneprocessPKDTO();

        tgeneprocessPKDTO.setProcesscode( tgeneprocessPK.getProcesscode() );
        tgeneprocessPKDTO.setCatalogtypeprocess( tgeneprocessPK.getCatalogtypeprocess() );
        tgeneprocessPKDTO.setCatalogcodetypeprocess( tgeneprocessPK.getCatalogcodetypeprocess() );

        return tgeneprocessPKDTO;
    }
}
