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

import com.qsoft.rs.sincoar.dto.TgeneschedulelogPKDTO;
import com.qsoft.rs.sincoar.model.TgeneschedulelogPK;
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 TgeneschedulelogPKMapperImpl implements TgeneschedulelogPKMapper {

    @Override
    public TgeneschedulelogPK getEntidad(TgeneschedulelogPKDTO tgeneschedulelogPK) {
        if ( tgeneschedulelogPK == null ) {
            return null;
        }

        TgeneschedulelogPK tgeneschedulelogPK1 = new TgeneschedulelogPK();

        tgeneschedulelogPK1.setEventcode( tgeneschedulelogPK.getEventcode() );
        tgeneschedulelogPK1.setRealdate( tgeneschedulelogPK.getRealdate() );

        return tgeneschedulelogPK1;
    }

    @Override
    public TgeneschedulelogPKDTO getDto(TgeneschedulelogPK tgeneschedulelogPK) {
        if ( tgeneschedulelogPK == null ) {
            return null;
        }

        TgeneschedulelogPKDTO tgeneschedulelogPKDTO = new TgeneschedulelogPKDTO();

        tgeneschedulelogPKDTO.setEventcode( tgeneschedulelogPK.getEventcode() );
        tgeneschedulelogPKDTO.setRealdate( tgeneschedulelogPK.getRealdate() );

        return tgeneschedulelogPKDTO;
    }
}
