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

import com.qsoft.rs.sincoar.dto.TsafeprofilehoraryamountPKDTO;
import com.qsoft.rs.sincoar.model.TsafeprofilehoraryamountPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TsafeprofilehoraryamountPK getEntidad(TsafeprofilehoraryamountPKDTO tsafeprofilehoraryamountPK) {
        if ( tsafeprofilehoraryamountPK == null ) {
            return null;
        }

        TsafeprofilehoraryamountPK tsafeprofilehoraryamountPK1 = new TsafeprofilehoraryamountPK();

        tsafeprofilehoraryamountPK1.setRegistercode( tsafeprofilehoraryamountPK.getRegistercode() );
        tsafeprofilehoraryamountPK1.setModulecode( tsafeprofilehoraryamountPK.getModulecode() );
        tsafeprofilehoraryamountPK1.setProductcode( tsafeprofilehoraryamountPK.getProductcode() );
        tsafeprofilehoraryamountPK1.setSubproductcode( tsafeprofilehoraryamountPK.getSubproductcode() );
        tsafeprofilehoraryamountPK1.setCurrencycode( tsafeprofilehoraryamountPK.getCurrencycode() );

        return tsafeprofilehoraryamountPK1;
    }

    @Override
    public TsafeprofilehoraryamountPKDTO getDto(TsafeprofilehoraryamountPK tsafeprofilehoraryamountPK) {
        if ( tsafeprofilehoraryamountPK == null ) {
            return null;
        }

        TsafeprofilehoraryamountPKDTO tsafeprofilehoraryamountPKDTO = new TsafeprofilehoraryamountPKDTO();

        tsafeprofilehoraryamountPKDTO.setRegistercode( tsafeprofilehoraryamountPK.getRegistercode() );
        tsafeprofilehoraryamountPKDTO.setModulecode( tsafeprofilehoraryamountPK.getModulecode() );
        tsafeprofilehoraryamountPKDTO.setProductcode( tsafeprofilehoraryamountPK.getProductcode() );
        tsafeprofilehoraryamountPKDTO.setSubproductcode( tsafeprofilehoraryamountPK.getSubproductcode() );
        tsafeprofilehoraryamountPKDTO.setCurrencycode( tsafeprofilehoraryamountPK.getCurrencycode() );

        return tsafeprofilehoraryamountPKDTO;
    }
}
