fix: 변환매핑 item이 하나도 없는 변환매핑 로딩 안되는 문제 처리
eapim-portal CI (from elink-online-core-jpa) / build (push) Has been cancelled

This commit is contained in:
curry772
2026-08-27 12:02:50 +09:00
parent 62291c9e57
commit 6651e0e809
@@ -11,7 +11,15 @@ import com.eactive.eai.data.jpa.BaseRepository;
interface TransformLoaderRepository
extends DataLoaderRepository<TransformEntity>, BaseRepository<TransformEntity, String> {
@Query("from TransformEntity t inner join fetch t.transformItemEntities where t.useyn = '1' order by t.cnvsnname")
/**
* 변환 마스터(TSEAITR01) 전체 로딩.
*
* 변환 항목 매핑(TSEAITR03)이 한 건도 없는 변환도 로딩 대상에 포함시키기 위해 left join fetch 를 사용한다.
* inner join fetch 로 조회할 경우 TSEAITR03 이 비어 있는 변환은 결과에서 통째로 누락되어,
* 온라인 서버 기동 후 해당 변환 호출 시 "전문레이아웃매핑(변환)정보를 찾을 수 없음" 오류가 발생한다.
* (매핑 항목이 없는 변환은 TransformValidator 가 기동 시 warn 으로 남긴다)
*/
@Query("from TransformEntity t left join fetch t.transformItemEntities where t.useyn = '1' order by t.cnvsnname")
@Override
Stream<TransformEntity> loadAll();