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
package com.sma.backend.service; | |
/** | |
* @author Mak Sophea | |
* @date : 1/21/2020 | |
**/ | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.io.IOUtils; |
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
/** | |
* @author Mak Sophea | |
* @date : 1/15/2020 | |
**/ | |
@Configuration | |
public class TransactionManagerConfig { | |
@Bean(name = "chainedTransactionManager") | |
public ChainedTransactionManager transactionManager ( | |
@Qualifier("sqlServerTransactionManager") PlatformTransactionManager sqlTransactionManager, |
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
@Configuration | |
@EnableTransactionManagement | |
@EnableJpaRepositories(entityManagerFactoryRef = "sqlServerEntityManagerFactory", transactionManagerRef = "sqlServerTransactionManager", basePackages = "com.sma.aml.repository") | |
public class SqlServerDatabaseConfiguration { | |
@Bean | |
@ConfigurationProperties(prefix = "sqlServer.datasource") | |
public DataSourceProperties sqlServerDataSourceProperties() { | |
return new DataSourceProperties(); | |
} |