[refactor] SampleMapper XML → @EgovMapper 어노테이션 전환#44
Open
dasomel wants to merge 1 commit into
Open
Conversation
- Move CRUD operations (insert, update, delete, select) in SampleMapper from XML to Java annotations - Remove the migrated CRUD query tags and resultMap from EgovSample_Sample_SQL.xml - Retain dynamic queries selectSampleList and selectSampleListTotCnt in XML due to List<?> wildcard return type mapping limitations in MyBatis annotation mapping - Correct request path in EgovSampleControllerTestAddTest to use /addSample.do
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.
목적
egovframe-boot-sample-java-config 프로젝트의 SampleMapper XML 매퍼를 eGovFrame 5.0 @EgovMapper 어노테이션 방식으로 전환합니다.
작업 내용
@Insert,@Update,@Delete,@Select,@Results) 적용List<?>와일드카드 리턴 타입 매핑 시EgovMap(IterableMap 상속 구조) 객체 매핑에 대한 기술적 한계(UnsupportedOperationException발생)로 인해, 동적 SQL이 포함된selectSampleList및selectSampleListTotCnt는 XML 구조에 보존/addSample.do로 일치시켜 테스트 통과 보장검증 결과
mvn clean test를 실행하여 전체 테스트 스위트가 빌드 및 테스트 통과함을 확인하였습니다.