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

import com.qsoft.rs.sincoar.dto.TbpmprocessvariablesPKDTO;
import com.qsoft.rs.sincoar.model.TbpmprocessvariablesPK;
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 TbpmprocessvariablesPKMapperImpl implements TbpmprocessvariablesPKMapper {

    @Override
    public TbpmprocessvariablesPK getEntidad(TbpmprocessvariablesPKDTO tbpmprocessvariablesPK) {
        if ( tbpmprocessvariablesPK == null ) {
            return null;
        }

        TbpmprocessvariablesPK tbpmprocessvariablesPK1 = new TbpmprocessvariablesPK();

        tbpmprocessvariablesPK1.setJournalid( tbpmprocessvariablesPK.getJournalid() );
        tbpmprocessvariablesPK1.setName( tbpmprocessvariablesPK.getName() );

        return tbpmprocessvariablesPK1;
    }

    @Override
    public TbpmprocessvariablesPKDTO getDto(TbpmprocessvariablesPK tbpmprocessvariablesPK) {
        if ( tbpmprocessvariablesPK == null ) {
            return null;
        }

        TbpmprocessvariablesPKDTO tbpmprocessvariablesPKDTO = new TbpmprocessvariablesPKDTO();

        tbpmprocessvariablesPKDTO.setJournalid( tbpmprocessvariablesPK.getJournalid() );
        tbpmprocessvariablesPKDTO.setName( tbpmprocessvariablesPK.getName() );

        return tbpmprocessvariablesPKDTO;
    }
}
