From dadd519198cae71c43db73f4cd0d65052f2d292e Mon Sep 17 00:00:00 2001 From: wantaek Date: Wed, 9 Sep 2026 13:08:33 +0900 Subject: [PATCH] =?UTF-8?q?fix(codegen.template.templates):=20JTA=C2=B7JPA?= =?UTF-8?q?=20=ED=8A=B8=EB=9E=9C=EC=9E=AD=EC=85=98=20=EB=A7=88=EB=B2=95?= =?UTF-8?q?=EC=82=AC=EA=B0=80=20=EC=84=A0=EC=96=B8=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=80=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4?= =?UTF-8?q?=EB=A1=9C=20tx:advice=C2=B7aop:config=20=EB=A5=BC=20=EB=A7=89?= =?UTF-8?q?=EB=8D=98=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jta.vm 과 jpa.vm 은 두 블록을 #if(${chkConfigurationalTransactionManagement}) 로 감싸는데 그 이름의 컴포넌트가 jta.xml·jpa.xml 에 없다. VelocityContext 를 채우는 경로는 마법사 컴포넌트와 마법사 XML 의 섹션인데 이 저장소에는 를 쓰는 마법사가 없어 이 참조는 항상 미정의다. 같은 이름을 쓰는 transaction.xml 은 이 체크박스를 value="true" 로 선언한다. 두 마법사의 2쪽 페이지는 condition 없이 항상 열려 PointCut Expression·Advice Name 값이 언제나 컨텍스트에 실리는데, XML 을 고르면 그 값이 출력에 하나도 남지 않는다. JPA 는 chkAnnotationTransactionManagement 도 선언돼 있지 않아 트랜잭션 설정이 통째로 비어 나온다. 형제인 jta-java.vm·jpa-java.vm 과 egovframework.dev.imp.templates 의 이전 사본은 두 블록을 조건 없이 렌더하므로, XML 분기의 #if·#end 만 걷어낸다. --- .../eGovFrameTemplates/transaction/jpa.vm | 2 -- .../eGovFrameTemplates/transaction/jta.vm | 2 -- 2 files changed, 4 deletions(-) diff --git a/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jpa.vm b/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jpa.vm index 0280187f..a21dca8e 100644 --- a/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jpa.vm +++ b/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jpa.vm @@ -15,7 +15,6 @@ -#if(${chkConfigurationalTransactionManagement}) @@ -41,7 +40,6 @@ -#end #if(${chkAnnotationTransactionManagement}) diff --git a/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jta.vm b/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jta.vm index 9004a312..f675c274 100644 --- a/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jta.vm +++ b/egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/transaction/jta.vm @@ -21,7 +21,6 @@ -#if(${chkConfigurationalTransactionManagement}) @@ -47,7 +46,6 @@ -#end #if(${chkAnnotationTransactionManagement})