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

import com.qsoft.rs.sincoar.dto.TgenetransactionmessageDTO;
import com.qsoft.rs.sincoar.model.Tgenetransactionmessage;
import javax.annotation.processing.Generated;

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

    @Override
    public Tgenetransactionmessage getEntidad(TgenetransactionmessageDTO tgenetransactionmessage) {
        if ( tgenetransactionmessage == null ) {
            return null;
        }

        Tgenetransactionmessage tgenetransactionmessage1 = new Tgenetransactionmessage();

        tgenetransactionmessage1.setJournalid( tgenetransactionmessage.getJournalid() );
        tgenetransactionmessage1.setDatain( tgenetransactionmessage.getDatain() );
        tgenetransactionmessage1.setDataout( tgenetransactionmessage.getDataout() );

        return tgenetransactionmessage1;
    }

    @Override
    public TgenetransactionmessageDTO getDto(Tgenetransactionmessage tgenetransactionmessage) {
        if ( tgenetransactionmessage == null ) {
            return null;
        }

        TgenetransactionmessageDTO tgenetransactionmessageDTO = new TgenetransactionmessageDTO();

        tgenetransactionmessageDTO.setJournalid( tgenetransactionmessage.getJournalid() );
        tgenetransactionmessageDTO.setDatain( tgenetransactionmessage.getDatain() );
        tgenetransactionmessageDTO.setDataout( tgenetransactionmessage.getDataout() );

        return tgenetransactionmessageDTO;
    }
}
