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

import com.qsoft.rs.sincoar.dto.TgenebatchlogpreviousprocessPKDTO;
import com.qsoft.rs.sincoar.model.TgenebatchlogpreviousprocessPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenebatchlogpreviousprocessPK getEntidad(TgenebatchlogpreviousprocessPKDTO tgenebatchlogpreviousprocessPK) {
        if ( tgenebatchlogpreviousprocessPK == null ) {
            return null;
        }

        TgenebatchlogpreviousprocessPK tgenebatchlogpreviousprocessPK1 = new TgenebatchlogpreviousprocessPK();

        tgenebatchlogpreviousprocessPK1.setProcessdate( tgenebatchlogpreviousprocessPK.getProcessdate() );
        tgenebatchlogpreviousprocessPK1.setJournalid( tgenebatchlogpreviousprocessPK.getJournalid() );
        tgenebatchlogpreviousprocessPK1.setActioncode( tgenebatchlogpreviousprocessPK.getActioncode() );
        tgenebatchlogpreviousprocessPK1.setModulecode( tgenebatchlogpreviousprocessPK.getModulecode() );

        return tgenebatchlogpreviousprocessPK1;
    }

    @Override
    public TgenebatchlogpreviousprocessPKDTO getDto(TgenebatchlogpreviousprocessPK tgenebatchlogpreviousprocessPK) {
        if ( tgenebatchlogpreviousprocessPK == null ) {
            return null;
        }

        TgenebatchlogpreviousprocessPKDTO tgenebatchlogpreviousprocessPKDTO = new TgenebatchlogpreviousprocessPKDTO();

        tgenebatchlogpreviousprocessPKDTO.setProcessdate( tgenebatchlogpreviousprocessPK.getProcessdate() );
        tgenebatchlogpreviousprocessPKDTO.setJournalid( tgenebatchlogpreviousprocessPK.getJournalid() );
        tgenebatchlogpreviousprocessPKDTO.setActioncode( tgenebatchlogpreviousprocessPK.getActioncode() );
        tgenebatchlogpreviousprocessPKDTO.setModulecode( tgenebatchlogpreviousprocessPK.getModulecode() );

        return tgenebatchlogpreviousprocessPKDTO;
    }
}
