package com.eactive.eai.common.sessioninfo.mapper;

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

import com.eactive.eai.common.sessioninfo.SessionHistoryVO;
import com.eactive.eai.data.entity.onl.sessioninfo.SessionHistory;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SessionHistoryMapper extends GenericMapper<SessionHistoryVO, SessionHistory> {
	@Mapping(source = "historyid", target = "historyId")
	@Mapping(source = "body", target = "body")
	@Mapping(source = "guid", target = "guid")
	@Mapping(source = "historydstcd", target = "historyDstcd")
	@Mapping(source = "rspnsrsltdvsn", target = "rspnsRsltDvsn")
	@Mapping(source = "trantime", target = "tranTime")
	@Mapping(source = "userid", target = "userId")
	@Mapping(source = "uuid", target = "uuid")
	@Override
	SessionHistoryVO toVo(SessionHistory entity);

	@InheritInverseConfiguration
	SessionHistory toEntity(SessionHistoryVO vo);

}
