spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
753 stars 345 forks source link

Add `jdbcAggregateOperationsRef` to `@EnableJdbcRepositories` #1704

Open kota65535 opened 8 months ago

kota65535 commented 8 months ago

fix: #544, #687, #994

This PR adds jdbcAggregateOperationsRef to @EnableJdbcRepositories that enables to specify JdbcAggregateOperations bean name to be used for creating repositories, which significantly simplifies the configuration for multiple repositories. I've also created a sample project for testing this feature. Multiple repositories with different dialects can be configured using two configurations (Db1Config.java, Db2Config.java). As you can see, creating the JdbcAggregateOperations bean is still a bit messy. It may be better to have some factory class for creating them.

kota65535 commented 8 months ago

Hi @mp911de @schauder, could you please take a look?

kota65535 commented 7 months ago

@Mikhail2048 Thanks for your review. I've fixed the points you mentined, please check it.

kota65535 commented 6 months ago

@mp911de @schauder Could this PR be included to 3.3 M2? Thank you!

kota65535 commented 5 months ago

@mp911de @schauder @Mikhail2048 Could you please review when you have time?