spring-projects / spring-projects/spring-batch

Refactor JDBC DAOs to use named parameters instead of positional parameters

Open
#4,804 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

in: core related-to: job-repository type: enhancement
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the JDBC DAOs and reviewing their current JdbcTemplate usage. Compare NamedParameterJdbcTemplate with fluent JdbcClient in the project's Spring context, then define which option should be used and how all relevant DAOs can avoid duplicate parameters while preserving behavior; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, database
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.