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

import com.qsoft.rs.sincoar.model.Tarmcargadetalle;
import com.qsoft.rs.sincoar.dto.TarmcargadetalleDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TarmcargadetalleMapper {

    TarmcargadetalleMapper INSTANCE = Mappers.getMapper(TarmcargadetalleMapper.class);
    @Mapping(source = "ccarga", target = "ccarga.ccarga")
    Tarmcargadetalle getEntidad(TarmcargadetalleDTO tarmcargadetalle);
    @Mapping(target = "ccarga", source = "ccarga.ccarga")
    TarmcargadetalleDTO getDto(Tarmcargadetalle tarmcargadetalle);

}