package com.eactive.eai.rms.common.scheduler.ui;

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

import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.data.entity.man.scheduler.JobData;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface JobDataMapper extends GenericMapper<JobDataUI, JobData> {

	@Mapping(source = "id.jobName", target = "jobName")
	@Mapping(source = "id.dataKey", target = "dataKey")
	@Override
	JobDataUI toVo(JobData entity);

	@InheritInverseConfiguration
	@Override
	JobData toEntity(JobDataUI vo);

}
