package cokr.xit.ens.modules.ktsigntalk.gibis.model.struct;

import cokr.xit.ens.core.mapstruct.GenericMapper;
import cokr.xit.ens.core.mapstruct.StructMapperConfig;
import cokr.xit.ens.modules.ktsigntalk.gibis.domain.TmpltMngKtGibis;
import cokr.xit.ens.modules.ktsigntalk.gibis.model.TmpltMngKtGibisDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = StructMapperConfig.class)
public interface TmpltMngKtGibisMapper extends GenericMapper<TmpltMngKtGibisDTO, TmpltMngKtGibis> {


    @Override
    @Mapping(target = "orgMng.orgCd", source = "orgCd")
    TmpltMngKtGibis toEntity(TmpltMngKtGibisDTO tmpltMngktSigntalkDTO);

    @Override
    @Mapping(target = "orgCd", expression = "java(tmpltMngKtGibis.getOrgMng().getOrgCd())")
    TmpltMngKtGibisDTO toDto(TmpltMngKtGibis tmpltMngKtGibis);


}
