-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Dao 대신 Repository 계층에 의존하도록 수정 - JdbcRepository 추상화
- Loading branch information
Showing
12 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...kirikiri/src/main/java/co/kirikiri/persistence/goalroom/GoalRoomMemberJdbcRepository.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 co.kirikiri.persistence.goalroom; | ||
|
||
import co.kirikiri.domain.goalroom.GoalRoomMember; | ||
import java.util.List; | ||
|
||
public interface GoalRoomMemberJdbcRepository { | ||
|
||
void saveAllInBatch(final List<GoalRoomMember> goalRoomMembers); | ||
} |
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
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
Submodule properties
updated
from 61256b to 2a724a
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,12 @@ | |
import co.kirikiri.persistence.member.MemberRepository; | ||
import co.kirikiri.persistence.roadmap.RoadmapCategoryRepository; | ||
import co.kirikiri.persistence.roadmap.RoadmapRepository; | ||
import org.assertj.core.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import java.util.Optional; | ||
import org.assertj.core.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@RepositoryTest | ||
class GoalRoomMemberRepositoryTest { | ||
|
@@ -296,11 +296,13 @@ public GoalRoomMemberRepositoryTest(final MemberRepository memberRepository, | |
private Member 크리에이터를_저장한다() { | ||
final MemberImage memberImage = new MemberImage("originalFileName", "serverFilePath", ImageContentType.JPG); | ||
final MemberProfile memberProfile = new MemberProfile(Gender.MALE, "[email protected]"); | ||
final Member creator = new Member(1L, new Identifier("cokirikiri"), null, new EncryptedPassword(new Password("password1!")), new Nickname("코끼리"), memberImage, memberProfile); | ||
final Member creator = new Member(1L, new Identifier("cokirikiri"), null, | ||
new EncryptedPassword(new Password("password1!")), new Nickname("코끼리"), memberImage, memberProfile); | ||
return memberRepository.save(creator); | ||
} | ||
|
||
private Member 사용자를_생성한다(final String identifier, final String password, final String nickname, final String email) { | ||
private Member 사용자를_생성한다(final String identifier, final String password, final String nickname, | ||
final String email) { | ||
final MemberProfile memberProfile = new MemberProfile(Gender.MALE, email); | ||
final Member member = new Member(new Identifier(identifier), | ||
new EncryptedPassword(new Password(password)), new Nickname(nickname), | ||
|
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
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