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

import com.qsoft.rs.sincoar.dto.TsafeauditinsdelPKDTO;
import com.qsoft.rs.sincoar.model.TsafeauditinsdelPK;
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 TsafeauditinsdelPKMapperImpl implements TsafeauditinsdelPKMapper {

    @Override
    public TsafeauditinsdelPK getEntidad(TsafeauditinsdelPKDTO tsafeauditinsdelPK) {
        if ( tsafeauditinsdelPK == null ) {
            return null;
        }

        TsafeauditinsdelPK tsafeauditinsdelPK1 = new TsafeauditinsdelPK();

        tsafeauditinsdelPK1.setChangedate( tsafeauditinsdelPK.getChangedate() );
        tsafeauditinsdelPK1.setTablename( tsafeauditinsdelPK.getTablename() );
        tsafeauditinsdelPK1.setPartitiondb( tsafeauditinsdelPK.getPartitiondb() );
        tsafeauditinsdelPK1.setRealdate( tsafeauditinsdelPK.getRealdate() );

        return tsafeauditinsdelPK1;
    }

    @Override
    public TsafeauditinsdelPKDTO getDto(TsafeauditinsdelPK tsafeauditinsdelPK) {
        if ( tsafeauditinsdelPK == null ) {
            return null;
        }

        TsafeauditinsdelPKDTO tsafeauditinsdelPKDTO = new TsafeauditinsdelPKDTO();

        tsafeauditinsdelPKDTO.setChangedate( tsafeauditinsdelPK.getChangedate() );
        tsafeauditinsdelPKDTO.setTablename( tsafeauditinsdelPK.getTablename() );
        tsafeauditinsdelPKDTO.setPartitiondb( tsafeauditinsdelPK.getPartitiondb() );
        tsafeauditinsdelPKDTO.setRealdate( tsafeauditinsdelPK.getRealdate() );

        return tsafeauditinsdelPKDTO;
    }
}
