-
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.
- Loading branch information
Showing
26 changed files
with
100 additions
and
83 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
2 changes: 1 addition & 1 deletion
2
core/src/main/kotlin/com/core/adapter/in/web/dto/AdapterMealDto.kt
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
19 changes: 0 additions & 19 deletions
19
core/src/main/kotlin/com/core/adapter/out/persistence/MealPersistenceAdapter.kt
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
3 changes: 2 additions & 1 deletion
3
core/src/main/kotlin/com/core/application/port/in/GetWeekMealUseCase.kt
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
11 changes: 0 additions & 11 deletions
11
core/src/main/kotlin/com/core/application/port/out/GetWeekMealPort.kt
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
19 changes: 19 additions & 0 deletions
19
jpa/src/main/kotlin/com/jpa/domain/MealPersistenceAdapter.kt
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,19 @@ | ||
package com.jpa.domain | ||
|
||
import com.jpa.domain.mapper.MealMapper | ||
import com.jpa.domain.repository.MealRepository | ||
import com.jpa.domain.model.Meal | ||
import org.springframework.stereotype.Component | ||
import java.time.LocalDate | ||
|
||
@Component | ||
class MealPersistenceAdapter( | ||
private val mealRepository: MealRepository, | ||
private val mealMapper: MealMapper | ||
) { | ||
fun getWeekMeals(restaurantIdx: Long, start: LocalDate, end: LocalDate): List<Meal> { | ||
val weekMeal = mealRepository.getWeekMeal(restaurantIdx, start, end) | ||
val applicationMeals = mealMapper.toDomain(weekMeal); | ||
return applicationMeals | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...main/kotlin/com/core/common/BaseEntity.kt → ...otlin/com/jpa/domain/common/BaseEntity.kt
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
...out/persistence/entity/CampusJpaEntity.kt → .../com/jpa/domain/entity/CampusJpaEntity.kt
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
10 changes: 4 additions & 6 deletions
10
...r/out/persistence/entity/MealJpaEntity.kt → ...in/com/jpa/domain/entity/MealJpaEntity.kt
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
...persistence/entity/RestaurantJpaEntity.kt → .../jpa/domain/entity/RestaurantJpaEntity.kt
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
.../out/persistence/entity/ScrapJpaEntity.kt → ...n/com/jpa/domain/entity/ScrapJpaEntity.kt
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
.../out/persistence/entity/StoreJpaEntity.kt → ...n/com/jpa/domain/entity/StoreJpaEntity.kt
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
...r/out/persistence/entity/UserJpaEntity.kt → ...in/com/jpa/domain/entity/UserJpaEntity.kt
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,4 +1,4 @@ | ||
package com.core.adapter.out.persistence.entity | ||
package com.jpa.domain.entity | ||
|
||
import jakarta.persistence.* | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...r/out/persistence/enumerate/MealStatus.kt → ...in/com/jpa/domain/enumerate/MealStatus.kt
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
...ter/out/persistence/enumerate/MealType.kt → ...tlin/com/jpa/domain/enumerate/MealType.kt
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
11 changes: 11 additions & 0 deletions
11
jpa/src/main/kotlin/com/jpa/domain/global/config/JpaConfig.kt
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,11 @@ | ||
package com.jpa.domain.global.config | ||
|
||
import org.springframework.boot.autoconfigure.domain.EntityScan | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories | ||
|
||
@Configuration | ||
@EnableJpaRepositories(basePackages = ["com.jpa.domain.repository"]) | ||
@EntityScan(basePackages = ["com.jpa"]) | ||
class JpaConfig { | ||
} |
10 changes: 5 additions & 5 deletions
10
...pter/out/persistence/mapper/MealMapper.kt → ...otlin/com/jpa/domain/mapper/MealMapper.kt
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
...e/application/domain/meal/model/Campus.kt → ...ain/kotlin/com/jpa/domain/model/Campus.kt
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,4 +1,4 @@ | ||
package com.core.application.domain.meal.model | ||
package com.jpa.domain.model | ||
|
||
import java.time.LocalDateTime | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
...ore/application/domain/meal/model/Meal.kt → .../main/kotlin/com/jpa/domain/model/Meal.kt
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
...plication/domain/meal/model/Restaurant.kt → ...kotlin/com/jpa/domain/model/Restaurant.kt
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,4 +1,4 @@ | ||
package com.core.application.domain.meal.model | ||
package com.jpa.domain.model | ||
|
||
import java.time.LocalDateTime | ||
|
||
|
5 changes: 2 additions & 3 deletions
5
.../persistence/repository/MealRepository.kt → ...m/jpa/domain/repository/MealRepository.kt
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
spring: | ||
datasource: | ||
url: jdbc:mysql://localhost:3306/myongsik?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true | ||
username: root | ||
password: 1q2w3e4r! | ||
jpa: | ||
hibernate: | ||
ddl-auto: update | ||
show_sql: true | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
highlight_sql: true | ||
|
||
logging: | ||
level: | ||
org: | ||
hibernate: | ||
SQL: debug | ||
orm.jdbc.bind: trace |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ plugins { | |
} | ||
rootProject.name = "Server-v2" | ||
include("core") | ||
include("admin") | ||
include("admin") | ||
include("jpa") |