package cokr.xit.ens.modules.kkotalk.model.struct;

import org.mapstruct.*;

import cokr.xit.ens.core.mapstruct.*;
import cokr.xit.ens.modules.kkotalk.domain.*;
import cokr.xit.ens.modules.kkotalk.model.*;

@Mapper(config = StructMapperConfig.class)
public interface TmpltMngKkoTalkMapper extends GenericMapper<TmpltMngKkoTalkDTO, TmpltMngKkoTalk> {
    @Override
    @Mapping(target = "orgMng.orgCd", source = "orgCd")
    TmpltMngKkoTalk toEntity(TmpltMngKkoTalkDTO tmpltMngKkoTalkDTO);

    @Override
    @Mapping(target = "orgCd", expression = "java(tmpltMngKkoTalk.getOrgMng().getOrgCd())")
    TmpltMngKkoTalkDTO toDto(TmpltMngKkoTalk tmpltMngKkoTalk);
}
