spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

Refactor JDBC DAOs to use named parameters instead of positional parameters

Open quaff opened this issue 7 months ago • 3 comments

It will eliminate duplicate parameters from java code although JDBC prepared statement does not. And migrate from JdbcTemplate to NamedParameterJdbcTemplate or fluent JdbcClient?

quaff avatar Mar 31 '25 03:03 quaff

Using named parameters is indeed better. And I think moving the fluent JdbcClient would be better as well.

This is a good candidate for v6. Contributions are welcome!

fmbenhassine avatar May 22 '25 13:05 fmbenhassine

Using named parameters is indeed better. And I think moving the fluent JdbcClient would be better as well.

This is a good candidate for v6. Contributions are welcome!

I've submitted several PRs to improve JDBC DAOs, could you review them when you are free? It will help for contributing on this proposal.

quaff avatar May 23 '25 00:05 quaff

@quaff Yes I saw that's amazing! Thank you for all your contributions, really appreciated!

I will let you know when they are merged so you can proceed with this.

fmbenhassine avatar May 23 '25 08:05 fmbenhassine