-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: Staga에 `@OneToMany` 관계의 List<StageArtist> 필드 추가 * refactor: StageArtistRepository 의존 제거
- Loading branch information
1 parent
9109569
commit 4c9a07f
Showing
25 changed files
with
310 additions
and
416 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
33 changes: 0 additions & 33 deletions
33
...nd/src/main/java/com/festago/admin/repository/AdminStageIdResolverQueryDslRepository.java
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
backend/src/main/java/com/festago/admin/repository/AdminStageResolverQueryDslRepository.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,33 @@ | ||
package com.festago.admin.repository; | ||
|
||
import static com.festago.festival.domain.QFestival.festival; | ||
import static com.festago.stage.domain.QStage.stage; | ||
|
||
import com.festago.common.querydsl.QueryDslRepositorySupport; | ||
import com.festago.stage.domain.Stage; | ||
import java.util.List; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public class AdminStageResolverQueryDslRepository extends QueryDslRepositorySupport { | ||
|
||
public AdminStageResolverQueryDslRepository() { | ||
super(Stage.class); | ||
} | ||
|
||
public List<Stage> findStageByFestivalId(Long festivalId) { | ||
return selectFrom(stage) | ||
.innerJoin(stage.festival) | ||
.leftJoin(stage.artists).fetchJoin() | ||
.where(festival.id.eq(festivalId)) | ||
.fetch(); | ||
} | ||
|
||
public List<Stage> findStageByFestivalIdIn(List<Long> festivalIds) { | ||
return selectFrom(stage) | ||
.innerJoin(stage.festival) | ||
.leftJoin(stage.artists).fetchJoin() | ||
.where(festival.id.in(festivalIds)) | ||
.fetch(); | ||
} | ||
} |
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
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
38 changes: 0 additions & 38 deletions
38
backend/src/main/java/com/festago/stage/domain/FestivalIdStageArtistsResolverImpl.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
Oops, something went wrong.