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

import com.qsoft.rs.sincoar.dto.TgenebatchlogPKDTO;
import com.qsoft.rs.sincoar.model.TgenebatchlogPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenebatchlogPK getEntidad(TgenebatchlogPKDTO tgenebatchlogPK) {
        if ( tgenebatchlogPK == null ) {
            return null;
        }

        TgenebatchlogPK tgenebatchlogPK1 = new TgenebatchlogPK();

        tgenebatchlogPK1.setProcessdate( tgenebatchlogPK.getProcessdate() );
        tgenebatchlogPK1.setJournalid( tgenebatchlogPK.getJournalid() );
        tgenebatchlogPK1.setModulecode( tgenebatchlogPK.getModulecode() );

        return tgenebatchlogPK1;
    }

    @Override
    public TgenebatchlogPKDTO getDto(TgenebatchlogPK tgenebatchlogPK) {
        if ( tgenebatchlogPK == null ) {
            return null;
        }

        TgenebatchlogPKDTO tgenebatchlogPKDTO = new TgenebatchlogPKDTO();

        tgenebatchlogPKDTO.setProcessdate( tgenebatchlogPK.getProcessdate() );
        tgenebatchlogPKDTO.setJournalid( tgenebatchlogPK.getJournalid() );
        tgenebatchlogPKDTO.setModulecode( tgenebatchlogPK.getModulecode() );

        return tgenebatchlogPKDTO;
    }
}
