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

import com.qsoft.rs.sincoar.dto.TarminventariosubidoporpersonaPKDTO;
import com.qsoft.rs.sincoar.model.TarminventariosubidoporpersonaPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TarminventariosubidoporpersonaPK getEntidad(TarminventariosubidoporpersonaPKDTO tarminventariosubidoporpersonaPK) {
        if ( tarminventariosubidoporpersonaPK == null ) {
            return null;
        }

        TarminventariosubidoporpersonaPK tarminventariosubidoporpersonaPK1 = new TarminventariosubidoporpersonaPK();

        if ( tarminventariosubidoporpersonaPK.getPersoncode() != null ) {
            tarminventariosubidoporpersonaPK1.setPersoncode( tarminventariosubidoporpersonaPK.getPersoncode() );
        }
        tarminventariosubidoporpersonaPK1.setClase( tarminventariosubidoporpersonaPK.getClase() );

        return tarminventariosubidoporpersonaPK1;
    }

    @Override
    public TarminventariosubidoporpersonaPKDTO getDto(TarminventariosubidoporpersonaPK tarminventariosubidoporpersonaPK) {
        if ( tarminventariosubidoporpersonaPK == null ) {
            return null;
        }

        TarminventariosubidoporpersonaPKDTO tarminventariosubidoporpersonaPKDTO = new TarminventariosubidoporpersonaPKDTO();

        tarminventariosubidoporpersonaPKDTO.setPersoncode( (int) tarminventariosubidoporpersonaPK.getPersoncode() );
        tarminventariosubidoporpersonaPKDTO.setClase( tarminventariosubidoporpersonaPK.getClase() );

        return tarminventariosubidoporpersonaPKDTO;
    }
}
