-
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.
[BSVR-187] infrastructure 모듈 병합 (#107)
* feat: infrastructure 모듈 병합 * fix: 컴포넌트 스캔시 바뀐 패키지 따라가도록 수정 * fix: jpql에서 dto 사용하는 경우 패키지명 수정
- Loading branch information
Showing
80 changed files
with
276 additions
and
281 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
6 changes: 3 additions & 3 deletions
6
...ion/src/main/java/org/depromeet/spot/application/common/config/SpotApplicationConfig.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package org.depromeet.spot.application.common.config; | ||
|
||
import org.depromeet.spot.jpa.config.JpaConfig; | ||
import org.depromeet.spot.ncp.NcpConfig; | ||
import org.depromeet.spot.infrastructure.aws.AwsConfig; | ||
import org.depromeet.spot.infrastructure.jpa.config.JpaConfig; | ||
import org.depromeet.spot.usecase.config.UsecaseConfig; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Import; | ||
|
||
@ComponentScan(basePackages = {"org.depromeet.spot.application"}) | ||
@Configuration | ||
@Import(value = {UsecaseConfig.class, JpaConfig.class, NcpConfig.class, SwaggerConfig.class}) | ||
@Import(value = {UsecaseConfig.class, JpaConfig.class, AwsConfig.class, SwaggerConfig.class}) | ||
public class SpotApplicationConfig {} |
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 |
---|---|---|
@@ -1,2 +1,31 @@ | ||
dependencies { | ||
implementation(project(":common")) | ||
implementation(project(":domain")) | ||
implementation(project(":usecase")) | ||
|
||
// spring | ||
implementation("org.springframework.boot:spring-boot-starter") | ||
implementation("org.springframework.boot:spring-boot-starter-web") | ||
implementation("org.springframework.boot:spring-boot-starter-data-jpa:_") | ||
|
||
// mysql | ||
runtimeOnly("com.mysql:mysql-connector-j") | ||
|
||
// queryDSL | ||
implementation("com.querydsl:querydsl-jpa:_:jakarta") | ||
annotationProcessor("com.querydsl:querydsl-apt:_:jakarta") | ||
annotationProcessor("jakarta.annotation:jakarta.annotation-api") | ||
annotationProcessor("jakarta.persistence:jakarta.persistence-api") | ||
|
||
// p6spy | ||
implementation("com.github.gavlyukovskiy:p6spy-spring-boot-starter:_") | ||
|
||
// aws | ||
implementation("org.springframework.cloud:spring-cloud-starter-aws:_") | ||
|
||
// webflux (HTTP 요청에 사용) | ||
implementation("org.springframework.boot:spring-boot-starter-webflux") | ||
} | ||
|
||
tasks.bootJar { enabled = false } | ||
tasks.jar { enabled = true } |
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
...ture/jpa/src/main/java/org/depromeet/spot/jpa/block/repository/BlockCustomRepository.java
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...main/java/org/depromeet/spot/jpa/review/repository/image/ReviewImageCustomRepository.java
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...java/org/depromeet/spot/jpa/team/repository/hometeam/StadiumHomeTeamCustomRepository.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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
4 changes: 2 additions & 2 deletions
4
.../spot/ncp/config/ObjectStorageConfig.java → ...cture/aws/config/ObjectStorageConfig.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
2 changes: 1 addition & 1 deletion
2
.../ncp/objectstorage/FileNameGenerator.java → .../aws/objectstorage/FileNameGenerator.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
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
4 changes: 2 additions & 2 deletions
4
.../objectstorage/PresignedUrlGenerator.java → .../objectstorage/PresignedUrlGenerator.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
2 changes: 1 addition & 1 deletion
2
...ncp/property/ObjectStorageProperties.java → ...aws/property/ObjectStorageProperties.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
4 changes: 2 additions & 2 deletions
4
...et/spot/jpa/block/entity/BlockEntity.java → ...ructure/jpa/block/entity/BlockEntity.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
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
36 changes: 36 additions & 0 deletions
36
...in/java/org/depromeet/spot/infrastructure/jpa/block/repository/BlockCustomRepository.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,36 @@ | ||
package org.depromeet.spot.infrastructure.jpa.block.repository; | ||
|
||
import static com.querydsl.core.group.GroupBy.list; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import org.depromeet.spot.infrastructure.jpa.block.entity.BlockEntity; | ||
import org.depromeet.spot.infrastructure.jpa.block.entity.BlockRowEntity; | ||
import org.depromeet.spot.infrastructure.jpa.block.entity.QBlockEntity; | ||
import org.depromeet.spot.infrastructure.jpa.block.entity.QBlockRowEntity; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import com.querydsl.core.group.GroupBy; | ||
import com.querydsl.jpa.impl.JPAQueryFactory; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
@Repository | ||
@RequiredArgsConstructor | ||
public class BlockCustomRepository { | ||
|
||
private final JPAQueryFactory queryFactory; | ||
|
||
public Map<BlockEntity, List<BlockRowEntity>> findRowInfosBy(final Long sectionId) { | ||
return queryFactory | ||
.from(QBlockRowEntity.blockRowEntity) | ||
.join(QBlockEntity.blockEntity) | ||
.on(QBlockRowEntity.blockRowEntity.block.id.eq(QBlockEntity.blockEntity.id)) | ||
.where(QBlockEntity.blockEntity.sectionId.eq(sectionId)) | ||
.orderBy(QBlockRowEntity.blockRowEntity.number.asc()) | ||
.transform( | ||
GroupBy.groupBy(QBlockEntity.blockEntity) | ||
.as(list(QBlockRowEntity.blockRowEntity))); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
.../block/repository/BlockJpaRepository.java → .../block/repository/BlockJpaRepository.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
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
2 changes: 1 addition & 1 deletion
2
...epository/row/BlockRowJdbcRepository.java → ...epository/row/BlockRowJdbcRepository.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
4 changes: 2 additions & 2 deletions
4
...repository/row/BlockRowJpaRepository.java → ...repository/row/BlockRowJpaRepository.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
4 changes: 2 additions & 2 deletions
4
...epository/row/BlockRowRepositoryImpl.java → ...epository/row/BlockRowRepositoryImpl.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
Oops, something went wrong.