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

import com.qsoft.rs.sincoar.dto.TcustpeopleaditionaldataPKDTO;
import com.qsoft.rs.sincoar.model.TcustpeopleaditionaldataPK;
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 TcustpeopleaditionaldataPKMapperImpl implements TcustpeopleaditionaldataPKMapper {

    @Override
    public TcustpeopleaditionaldataPK getEntidad(TcustpeopleaditionaldataPKDTO tcustpeopleaditionaldataPK) {
        if ( tcustpeopleaditionaldataPK == null ) {
            return null;
        }

        TcustpeopleaditionaldataPK tcustpeopleaditionaldataPK1 = new TcustpeopleaditionaldataPK();

        if ( tcustpeopleaditionaldataPK.getPersoncode() != null ) {
            tcustpeopleaditionaldataPK1.setPersoncode( tcustpeopleaditionaldataPK.getPersoncode() );
        }
        tcustpeopleaditionaldataPK1.setDateto( tcustpeopleaditionaldataPK.getDateto() );

        return tcustpeopleaditionaldataPK1;
    }

    @Override
    public TcustpeopleaditionaldataPKDTO getDto(TcustpeopleaditionaldataPK tcustpeopleaditionaldataPK) {
        if ( tcustpeopleaditionaldataPK == null ) {
            return null;
        }

        TcustpeopleaditionaldataPKDTO tcustpeopleaditionaldataPKDTO = new TcustpeopleaditionaldataPKDTO();

        tcustpeopleaditionaldataPKDTO.setPersoncode( (int) tcustpeopleaditionaldataPK.getPersoncode() );
        tcustpeopleaditionaldataPKDTO.setDateto( tcustpeopleaditionaldataPK.getDateto() );

        return tcustpeopleaditionaldataPKDTO;
    }
}
