Commit 8489d65
committed
refactor: QueryDSL Repository를 CommandRepository와 QueryRepository로 분리(#110)
* feat: MemberCommandRepository, MemberCommandRepositoryAdapter 구현
* feat: TripCommandRepository, TripCommandRepositoryAdapter 구현
* feat: StampCommandRepository, StampCommandRepositoryAdapter 구현
* feat: MissionCommandRepository, MissionCommandRepositoryAdapter 구현
* feat: DailyMissionCommandRepository, DailyMissionCommandRepositoryAdapter 구현
* feat: StudyLogCommandRepository, StudyLogCommandRepositoryAdapter 구현
* feat: StudyLogDailyMissionCommandRepository, StudyLogDailyMissionCommandRepositoryAdapter 구현
* feat: PomodoroCommandRepository, PomodoroCommandRepositoryAdapter 구현
* feat: TripReportQueryRepository, TripReportQueryRepositoryAdapter 구현
* feat: StampQueryRepository, StampQueryRepositoryAdapter에 findNextStampOrderByTripId 메서드 추가
* feat: StampQueryService에 getNextStampOrderByTrip 메서드 추가
* feat: StampQueryService에 getStampsToShiftAfterDeleted 메서드 추가
* feat: StampCommandService에 shiftStampOrders 메서드 추가
* refactor: TripQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: StampQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: MissionQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: DailyMissionQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: StudyLogQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: StudyLogDailyMissionQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: PomodoroQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: DailyGoalQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: TripReportQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: TripReportStudyLogQueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상
* refactor: DailyGoalQueryRepository -> DailyGoalCommandRepository 이름 변경
* refactor: DailyGoalQueryRepositoryAdapter -> DailyGoalCommandRepositoryAdapter 이름 변경
* refactor: TripReportQueryRepository -> TripReportCommandRepository 이름 변경
* refactor: TripReportQueryRepositoryAdapter -> TripReportCommandRepositoryAdapter 이름 변경
* refactor: TripReportStudyLogQueryRepository -> TripReportStudyLogCommandRepository 이름 변경
* refactor: TripReportStudyLogQueryRepositoryAdapter -> TripReportStudyLogCommandRepositoryAdapter 이름 변경
* refactor: StampQueryRepository, StampQueryRepositoryAdapter에서 findMaxStampOrderByTripId 메서드 삭제
* refactor: StampCommandService에서 computeNextStampOrder 메서드 삭제
* refactor: StampCommandService에서 createStamp, createStamps 메서드 int nextOrder 매개변수 추가
* refactor: StampCommandService에서 createStamp, createStamps 메서드 비즈니스 로직 개선
* refactor: StampCommandService에서 deleteStamp 메서드 비즈니스 로직 개선
* refactor: TripFacade에서 createTrip 메서드 비즈니스 로직 개선
* refactor: StampFacade에서 createStamp 메서드 비즈니스 로직 개선
* refactor: StampFacade에서 deleteStamp 메서드 비즈니스 로직 개선
* test: MemberCommandServiceTest 단위 테스트 수정
* test: TripCommandServiceTest 단위 테스트 수정
* test: StampCommandServiceTest 단위 테스트 수정
* test: MissionCommandServiceTest 단위 테스트 수정
* test: DailyMissionCommandServiceTest 단위 테스트 수정
* test: StudyLogCommandServiceTest 단위 테스트 수정
* test: StudyLogDailyMissionCommandServiceTest 단위 테스트 수정
* test: PomodoroCommandServiceTest 단위 테스트 수정
* test: DailyGoalCommandServiceTest 단위 테스트 수정
* test: TripReportCommandServiceTest 단위 테스트 수정
* test: TripReportStudyLogCommandServiceTest 단위 테스트 수정
* test: StampQueryServiceTest에 GetNextStampOrderByTrip 단위 테스트 추가
* test: StampQueryServiceTest에 GetStampsToShiftAfterDeleted 단위 테스트 추가
* test: StampCommandServiceTest에 ShiftStampOrders 단위 테스트 추가
* test: StampFixture에 createStampWithName 메서드 추가1 parent f390c1a commit 8489d65
67 files changed
Lines changed: 960 additions & 717 deletions
File tree
- src
- main/java/com/ject/studytrip
- member
- application/service
- domain/repository
- infra/querydsl
- mission
- application/service
- domain/repository
- infra/querydsl
- pomodoro
- application/service
- domain/repository
- infra/querydsl
- stamp
- application
- facade
- service
- domain/repository
- infra/querydsl
- studylog
- application/service
- domain/repository
- infra/querydsl
- trip
- application
- facade
- service
- domain/repository
- infra/querydsl
- test/java/com/ject/studytrip
- member/application/service
- mission/application/service
- pomodoro/application/service
- stamp
- application/service
- fixture
- studylog/application/service
- trip/application/service
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 28 | | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments