spring-data-relational
spring-data-relational copied to clipboard
chore: qualify jdbcMappingContext; expected behaviour for parallel r2dbc usage
avoids following code for parallel r2dbc usage:
@EnableJdbcRepositories(
repositoryFactoryBeanClass = MixedJdbcRepositoryFactoryBean.class
)
...
class MixedJdbcRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable>
extends JdbcRepositoryFactoryBean<T, S, ID> {
public MixedJdbcRepositoryFactoryBean(Class<? extends T> repositoryInterface) {
super(repositoryInterface);
}
@Autowired
public void setMappingContext(@Qualifier("jdbcMappingContext") RelationalMappingContext mappingContext) {
super.setMappingContext(mappingContext);
}
}
@Stefanqn Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@Stefanqn Thank you for signing the Contributor License Agreement!
We actually should remove auto wiring on the factory bean altogether and handle the wiring externally.