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

import com.qsoft.rs.sincoar.model.Tarmcashmanagementhistory;
import com.qsoft.rs.sincoar.dto.TarmcashmanagementhistoryDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TarmcashmanagementhistoryMapper {

    TarmcashmanagementhistoryMapper INSTANCE = Mappers.getMapper(TarmcashmanagementhistoryMapper.class);
    @Mapping(source = "usercode", target = "usercode.usercode")
    Tarmcashmanagementhistory getEntidad(TarmcashmanagementhistoryDTO tarmcashmanagementhistory);
    
    @Mapping(target = "usercode", source = "usercode.usercode")
    TarmcashmanagementhistoryDTO getDto(Tarmcashmanagementhistory tarmcashmanagementhistory);

}