package com.jwipc.tender.convert;

import com.jwipc.tender.dto.TenderSecurityDepositDTO;
import com.jwipc.tender.entity.TenderSecurityDeposit;
import com.jwipc.tender.entity.TenderSettingSecurityDeposit;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;


@Mapper(componentModel = "spring")
public interface TenderSettingSecurityConvert {
    @Mapping(ignore = true, source = "id", target = "id")
    TenderSecurityDepositDTO setting2Dto(TenderSettingSecurityDeposit securityDeposit);

    TenderSecurityDepositDTO merge(TenderSecurityDeposit depositServiceOne,
                                   @MappingTarget TenderSecurityDepositDTO tenderSecurityDepositDTO);
}
