-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 환영 메시지 태그 파싱 로직 단순화 (#542)
* fix: 사용되지 않는 컨버터 제거 - @convert와 @type 간의 충돌 - @type이 이미 JSON 처리를 맡아 @convert를 덮어쓴 상황이라 필요없다는 어노테이션이라고 판단 * refactor: JPQL 대신 프로젝션으로 조회 방법 변경 * refactor: 환영 메시지 저장 및 조회 서비스 로직 변경 - NPE 방지를 위해 환영 메시지 저장 시 null 값이라도 DB에는 빈 리스트로 저장하도록 변경 - 서비스 레이어에서 필터링 하는 대신 프로젝션으로 바로 enum 객체를 가져올 수 있도록 변경
- Loading branch information
1 parent
4ed669f
commit 39f8fb1
Showing
5 changed files
with
25 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
9 changes: 9 additions & 0 deletions
9
main/src/main/java/org/sopt/makers/crew/main/entity/tag/WelcomeMessageTypeProjection.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.sopt.makers.crew.main.entity.tag; | ||
|
||
import java.util.List; | ||
|
||
import org.sopt.makers.crew.main.entity.tag.enums.WelcomeMessageType; | ||
|
||
public interface WelcomeMessageTypeProjection { | ||
List<WelcomeMessageType> getWelcomeMessageTypes(); | ||
} |
41 changes: 0 additions & 41 deletions
41
main/src/main/java/org/sopt/makers/crew/main/entity/tag/enums/WelcomeTypeConverter.java
This file was deleted.
Oops, something went wrong.
This file contains 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