CRUD 코드 생성 템플릿의 하드코딩 주석 엔티티명 변수화 (Render entity names in CRUD comments) - #136
Merged
swanpark8538 merged 1 commit intoAug 3, 2026
Merged
Conversation
Contributor
Author
검증 근거 보강 (독립 재현)이 PR의 변경을 별도 환경에서 다시 검증했습니다. 1) 변경 성격
2) Velocity 2.3 렌더 스모크 (수정 전/후 동일 컨텍스트 렌더 후 생성물 diff)
3) 중복 PR 정리 같은 취지로 제가 별도 제출했던 #137(java 4파일 24곳)은 이 PR의 부분집합이라 닫았습니다. 이 PR로 일원화합니다. 리뷰 부담을 드려 죄송합니다. 4) 알려진 한계 조사는 옛 정본 표기( Refs #135 |
EricSeokgon
marked this pull request as ready for review
July 31, 2026 01:13
This comment was marked as duplicate.
This comment was marked as duplicate.
swanpark8538
approved these changes
Aug 3, 2026
swanpark8538
left a comment
Collaborator
There was a problem hiding this comment.
'글'로 하드코딩 되어 있는 부분을 수정해 주신 것을 확인했습니다.
'을(를)' 표기 개선은 중요한 문제가 아니므로
현재 상태 그대로 Merge 하겠습니다.
전자정부 표준프레임워크에 기여해 주셔서 감사합니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
수정 사유 Reason for modification
수정된 소스 내용 Modified source
#135에서 기여 정본으로 확인된
egovframework.dev.imp.codegen.template.templates의 CRUD 생성 주석을 수정합니다.활성 템플릿은 선택한 엔티티와 관계없이 "글을 등록한다"와 같은 고정 주석을 생성합니다. 전수 확인 결과 5개 템플릿에 38곳이 있습니다.
38곳의 하드코딩된 "글"을
${model.entity.name}으로 변경했습니다.변경된 76개 diff 줄은 모두 주석입니다. Java 코드, SQL, 메서드 시그니처, Velocity 제어 흐름, JSP 동작은 변경하지 않았습니다.
JUnit 테스트 JUnit tests
검증 결과 Validation results
git diff --check통과글0건 확인NOTICE_BOARD와 PK가 없는MEMBER모델로 5개 템플릿 렌더Controller 소스에는 치환이 8곳 있지만 PK 유무에 따른 두
@param주석이 상호 배타적이므로 각 렌더 결과에는 엔티티명이 7곳 나타납니다.Windows/Temurin JDK 17에서 CI 등가 Maven package는 성공했지만 레거시 검증 모듈에서 MS949 플랫폼 인코딩 진단이 출력됐습니다. 이 PR은 해당 모듈의 Java 소스를 변경하지 않으며, 별도 Velocity 렌더 assertion은 통과했습니다.
테스트 브라우저 Test Browser
테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video
주석 전용 템플릿 변경으로 UI 스크린샷은 해당하지 않습니다. 위 렌더 테스트와 diff 불변 검증 결과를 첨부했습니다.