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

import com.qsoft.rs.sincoar.dto.TsafeauditPKDTO;
import com.qsoft.rs.sincoar.model.TsafeauditPK;
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 TsafeauditPKMapperImpl implements TsafeauditPKMapper {

    @Override
    public TsafeauditPK getEntidad(TsafeauditPKDTO tsafeauditPK) {
        if ( tsafeauditPK == null ) {
            return null;
        }

        TsafeauditPK tsafeauditPK1 = new TsafeauditPK();

        tsafeauditPK1.setChangedate( tsafeauditPK.getChangedate() );
        tsafeauditPK1.setTablename( tsafeauditPK.getTablename() );
        tsafeauditPK1.setColumnname( tsafeauditPK.getColumnname() );
        tsafeauditPK1.setPartitiondb( tsafeauditPK.getPartitiondb() );
        tsafeauditPK1.setRealdate( tsafeauditPK.getRealdate() );

        return tsafeauditPK1;
    }

    @Override
    public TsafeauditPKDTO getDto(TsafeauditPK tsafeauditPK) {
        if ( tsafeauditPK == null ) {
            return null;
        }

        TsafeauditPKDTO tsafeauditPKDTO = new TsafeauditPKDTO();

        tsafeauditPKDTO.setChangedate( tsafeauditPK.getChangedate() );
        tsafeauditPKDTO.setTablename( tsafeauditPK.getTablename() );
        tsafeauditPKDTO.setColumnname( tsafeauditPK.getColumnname() );
        tsafeauditPKDTO.setPartitiondb( tsafeauditPK.getPartitiondb() );
        tsafeauditPKDTO.setRealdate( tsafeauditPK.getRealdate() );

        return tsafeauditPKDTO;
    }
}
