docs(codegen): CRUD 템플릿 생성 주석의 엔티티명 변수화 복원 - #137
Closed
EricSeokgon wants to merge 4 commits into
Closed
Conversation
Updated method documentation to reference ${model.entity.name} instead of '글'.
Updated comments in Sample2Mapper.vm to include model entity names.
13 tasks
Contributor
Author
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.
요약
CRUD 코드 생성 템플릿(crud/java)의 javadoc 주석이 엔티티와 무관하게 "글을 등록한다"로 하드코딩되어 있어, 어떤 엔티티로 생성해도 주석이 전부 "글" 기준으로 출력됩니다.
${model.entity.name}기반 표기로 복원합니다. 코드 영역은 변경하지 않습니다.문제 (재현)
egovframework.dev.imp.codegen.template.templates/eGovFrameTemplates/crud/java/하위 4개 템플릿의 javadoc 주석 24곳이 "글을 등록한다/수정한다/삭제한다/조회한다", "글 목록…" 등으로 고정되어 있습니다.MemberService.java의 주석은* 글을 등록한다.egovframework.dev.imp.templates)를 비교한 결과, 같은 자리들이${model.entity.name}변수화로 남아 있습니다. 과거 표기가 이후 개편 과정에서 하드코딩으로 되돌아간 것으로 보여, 그 표기를 복원하는 취지입니다. 의도된 변경이었다면 알려주시면 따르겠습니다.수정
글을 등록한다.→${model.entity.name}을 등록한다.,글 목록을 조회한다→${model.entity.name} 목록을 조회한다,@return 글 목록→@return ${model.entity.name} 목록등을(를)표기를 선호하시면 반영하겠습니다.검증 (실측)
* 글을 등록한다.→* 회원을 등록한다./* 부서코드 목록을 조회한다. (pageing)영향 범위
Refs #135