DATAJDBC-622 - Polishing.
Rolled back changes to tests. Added @author and @since tags. Original pull request: #245.
This commit is contained in:
@@ -38,6 +38,7 @@ import org.springframework.transaction.PlatformTransactionManager;
|
||||
* @author Greg Turnquist
|
||||
* @author Mark Paluch
|
||||
* @author Fei Dong
|
||||
* @author Juan Medina
|
||||
* @see AbstractJdbcConfiguration
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@@ -126,6 +127,7 @@ public @interface EnableJdbcRepositories {
|
||||
/**
|
||||
* Configures the name of the {@link DataSourceTransactionManager} bean definition to be used to create repositories
|
||||
* discovered through this annotation. Defaults to {@code transactionManager}.
|
||||
* @since 2.1
|
||||
*/
|
||||
String transactionManagerRef() default "transactionManager";
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Jens Schauder
|
||||
* @author Fei Dong
|
||||
* @author Mark Paluch
|
||||
* @author Juan Medina
|
||||
*/
|
||||
public class JdbcRepositoryConfigExtension extends RepositoryConfigurationExtensionSupport {
|
||||
|
||||
|
||||
@@ -134,7 +134,6 @@ public class EnableJdbcRepositoriesIntegrationTests {
|
||||
@EnableJdbcRepositories(considerNestedRepositories = true,
|
||||
includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = DummyRepository.class),
|
||||
jdbcOperationsRef = "qualifierJdbcOperations", dataAccessStrategyRef = "qualifierDataAccessStrategy",
|
||||
transactionManagerRef = "transactionManager",
|
||||
repositoryBaseClass = DummyRepositoryBaseClass.class)
|
||||
static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -83,8 +83,8 @@ public class TestConfiguration {
|
||||
return new NamedParameterJdbcTemplate(dataSource);
|
||||
}
|
||||
|
||||
@Bean(name = "transactionManager")
|
||||
PlatformTransactionManager defaultTransactionManager() {
|
||||
@Bean
|
||||
PlatformTransactionManager transactionManager() {
|
||||
return new DataSourceTransactionManager(dataSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user