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

import com.qsoft.rs.sincoar.dto.TbpmactivitiesPKDTO;
import com.qsoft.rs.sincoar.model.TbpmactivitiesPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TbpmactivitiesPK getEntidad(TbpmactivitiesPKDTO tbpmactivitiesPK) {
        if ( tbpmactivitiesPK == null ) {
            return null;
        }

        TbpmactivitiesPK tbpmactivitiesPK1 = new TbpmactivitiesPK();

        tbpmactivitiesPK1.setJournalid( tbpmactivitiesPK.getJournalid() );
        tbpmactivitiesPK1.setActivityname( tbpmactivitiesPK.getActivityname() );
        if ( tbpmactivitiesPK.getSequence() != null ) {
            tbpmactivitiesPK1.setSequence( tbpmactivitiesPK.getSequence() );
        }

        return tbpmactivitiesPK1;
    }

    @Override
    public TbpmactivitiesPKDTO getDto(TbpmactivitiesPK tbpmactivitiesPK) {
        if ( tbpmactivitiesPK == null ) {
            return null;
        }

        TbpmactivitiesPKDTO tbpmactivitiesPKDTO = new TbpmactivitiesPKDTO();

        tbpmactivitiesPKDTO.setJournalid( tbpmactivitiesPK.getJournalid() );
        tbpmactivitiesPKDTO.setActivityname( tbpmactivitiesPK.getActivityname() );
        tbpmactivitiesPKDTO.setSequence( (int) tbpmactivitiesPK.getSequence() );

        return tbpmactivitiesPKDTO;
    }
}
