package com.kbstar.eai.common.businessday.mapper;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

import com.eactive.eai.common.routing.RoutingVO;
import com.eactive.eai.data.entity.onl.businessday.BusinessDay;
import com.eactive.eai.data.entity.onl.routing.Routing;
import com.eactive.eai.data.mapper.GenericMapper;
import com.kbstar.eai.common.businessday.BusinessDayVO;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface BusinessDayMapper extends GenericMapper<BusinessDayVO, BusinessDay> {
	@Mapping(source = "id", target = "EAISvcName")
	@Mapping(source = "splizvaldymd", target = "telgmValdYmd")
	@Override
	BusinessDayVO toVo(BusinessDay entity);
	
	@InheritInverseConfiguration
	BusinessDay toEntity(BusinessDayVO vo);	
}
