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

import com.qsoft.rs.sincoar.dto.TlogloadPKDTO;
import com.qsoft.rs.sincoar.model.TlogloadPK;
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 TlogloadPKMapperImpl implements TlogloadPKMapper {

    @Override
    public TlogloadPK getEntidad(TlogloadPKDTO tlogloadPK) {
        if ( tlogloadPK == null ) {
            return null;
        }

        TlogloadPK tlogloadPK1 = new TlogloadPK();

        tlogloadPK1.setJournalid( tlogloadPK.getJournalid() );
        if ( tlogloadPK.getLoadsequence() != null ) {
            tlogloadPK1.setLoadsequence( tlogloadPK.getLoadsequence() );
        }

        return tlogloadPK1;
    }

    @Override
    public TlogloadPKDTO getDto(TlogloadPK tlogloadPK) {
        if ( tlogloadPK == null ) {
            return null;
        }

        TlogloadPKDTO tlogloadPKDTO = new TlogloadPKDTO();

        tlogloadPKDTO.setJournalid( tlogloadPK.getJournalid() );
        tlogloadPKDTO.setLoadsequence( (int) tlogloadPK.getLoadsequence() );

        return tlogloadPKDTO;
    }
}
