[HOTFIX] #229 - 회원 등록 후 flush()를 호출하여 DB에 반영 #230
Merged
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.
Related issue 🛠
Work Description ✏️
flush() 호출
role을 Member로 등록하고 저장 시, flush()를 호출하여 변경 사항을 데이터베이스에 반영하도록 했습니다.
회원 정보 조회 시, memberService.findUserByMemberId(memberId)를 호출하여 방금 등록한 회원의 Users 정보를 조회할 때, 데이터베이스에 변경 사항이 반영되어 있으므로, 정상적으로 데이터를 가져올 수 있게 됩니다.
Propagation.REQUIRES_NEW
Trouble Shooting ⚽️
Related ScreenShot 📷
Uncompleted Tasks 😅
To Reviewers 📢
트랜잭션 전파 관련(ROLE을 USER로 부여하는 문제)