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

import com.qsoft.rs.sincoar.dto.TsafeusersessionlogPKDTO;
import com.qsoft.rs.sincoar.model.TsafeusersessionlogPK;
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 TsafeusersessionlogPKMapperImpl implements TsafeusersessionlogPKMapper {

    @Override
    public TsafeusersessionlogPK getEntidad(TsafeusersessionlogPKDTO tsafeusersessionlogPK) {
        if ( tsafeusersessionlogPK == null ) {
            return null;
        }

        TsafeusersessionlogPK tsafeusersessionlogPK1 = new TsafeusersessionlogPK();

        if ( tsafeusersessionlogPK.getCompanycode() != null ) {
            tsafeusersessionlogPK1.setCompanycode( tsafeusersessionlogPK.getCompanycode() );
        }
        tsafeusersessionlogPK1.setWorkingdate( tsafeusersessionlogPK.getWorkingdate() );
        if ( tsafeusersessionlogPK.getSequence() != null ) {
            tsafeusersessionlogPK1.setSequence( tsafeusersessionlogPK.getSequence() );
        }

        return tsafeusersessionlogPK1;
    }

    @Override
    public TsafeusersessionlogPKDTO getDto(TsafeusersessionlogPK tsafeusersessionlogPK) {
        if ( tsafeusersessionlogPK == null ) {
            return null;
        }

        TsafeusersessionlogPKDTO tsafeusersessionlogPKDTO = new TsafeusersessionlogPKDTO();

        tsafeusersessionlogPKDTO.setCompanycode( tsafeusersessionlogPK.getCompanycode() );
        tsafeusersessionlogPKDTO.setWorkingdate( tsafeusersessionlogPK.getWorkingdate() );
        tsafeusersessionlogPKDTO.setSequence( tsafeusersessionlogPK.getSequence() );

        return tsafeusersessionlogPKDTO;
    }
}
