-
Notifications
You must be signed in to change notification settings - Fork 1
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
* refactor: 라이브러리성 모듈 라이브러리 모듈 밑으로 수정 * refactor: repo, data 모듈 삭제 반영 * refactor: 테스크 수정
- Loading branch information
1 parent
9df6081
commit 49068de
Showing
221 changed files
with
551 additions
and
550 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
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
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 was deleted.
Oops, something went wrong.
19 changes: 6 additions & 13 deletions
19
repo/src/main/kotlin/repo/config/TxConfig.kt → .../kotlin/com/few/api/config/ApiTxConfig.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,36 +1,29 @@ | ||
package repo.config | ||
package com.few.api.config | ||
|
||
import jakarta.persistence.EntityManagerFactory | ||
import com.few.api.config.ApiDataSourceConfig.Companion.DATASOURCE | ||
import org.springframework.beans.factory.annotation.Qualifier | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.annotation.Import | ||
import org.springframework.jdbc.datasource.DataSourceTransactionManager | ||
import org.springframework.orm.jpa.JpaTransactionManager | ||
import org.springframework.transaction.PlatformTransactionManager | ||
import org.springframework.transaction.TransactionManager | ||
import org.springframework.transaction.annotation.EnableTransactionManagement | ||
import org.springframework.transaction.annotation.TransactionManagementConfigurer | ||
import repo.config.DataSourceConfig.Companion.DATASOURCE | ||
import javax.sql.DataSource | ||
|
||
@Import(JpaConfig::class, DataSourceConfig::class) | ||
@Import(ApiConfig::class, ApiDataSourceConfig::class) | ||
@Configuration | ||
@EnableTransactionManagement | ||
class TxConfig( | ||
private val emf: EntityManagerFactory, | ||
class ApiTxConfig( | ||
@Qualifier(DATASOURCE) private val dataSource: DataSource, | ||
) : TransactionManagementConfigurer { | ||
companion object { | ||
const val JPA_TX = RepoConfig.BEAN_NAME_PREFIX + "JpaTransactionManager" | ||
const val DATASOURCE_TX = RepoConfig.BEAN_NAME_PREFIX + "DataSourceTransactionManager" | ||
const val DATASOURCE_TX = ApiConfig.BEAN_NAME_PREFIX + "DataSourceTransactionManager" | ||
} | ||
|
||
@Bean(name = [JPA_TX]) | ||
fun jpaTransactionManager(): PlatformTransactionManager = JpaTransactionManager(emf) | ||
|
||
@Bean(name = [DATASOURCE_TX]) | ||
fun dataSourceTransactionManager(): PlatformTransactionManager = DataSourceTransactionManager(dataSource) | ||
|
||
override fun annotationDrivenTransactionManager(): TransactionManager = jpaTransactionManager() | ||
override fun annotationDrivenTransactionManager(): TransactionManager = dataSourceTransactionManager() | ||
} |
4 changes: 2 additions & 2 deletions
4
...epo/flyway/support/ExceptionTranslator.kt → ...api/config/jooq/ApiExceptionTranslator.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
...in/repo/flyway/support/NativeSQLLogger.kt → ...few/api/config/jooq/ApiNativeSQLLogger.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
Oops, something went wrong.