package com.eactive.eai.rms.onl.manage.comm.property;

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

import com.eactive.eai.data.entity.onl.property.Prop;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PropMapper extends GenericMapper<PropertyUI, Prop> {

	@Mapping(source = "prptyGroupName", target = "id.prptygroupname")
	@Mapping(source = "prptyName", target = "id.prptyname")
	@Mapping(source = "prpty2Val", target = "prpty2val")
	@Override
	Prop toEntity(PropertyUI vo);

	@InheritInverseConfiguration
	@Override
	PropertyUI toVo(Prop entity);

}
