konveyor / konveyor/rulesets

Create rules for JDBC exception translator

Open
#146 5 comments 0 reactions 0 assignees View on GitHub
kind/feature priority/backlog priority/important-longterm size/S spring-migration/6 spring-migration/6.0 stale triage/accepted
Dominant language
Java
Stars
6
Forks
49
PR merge metrics
No merged PRs in 30d

Description

According to the [migration guide](https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#data-access-and-transactions-1):

> Spring's default JDBC exception translator is the JDBC 4 based SQLExceptionSubclassTranslator now, detecting JDBC driver subclasses as well as common SQL state indications (without database product name resolution at runtime). As of 6.0.3, this includes a common SQL state check for DuplicateKeyException, addressing a long-standing difference between SQL state mappings and legacy default error code mappings.

Investigate and create rules if necessary.

In the rule description and message, try to be as verbose and clear as possible. Code examples are always welcome and useful. Feel free to use markdown syntax for these.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Spring Framework 6 migration-guide section, then inspect existing Spring and JDBC rule definitions in this repository for their structure and tests. Determine whether rules are needed for the JDBC exception translator changes; done means any necessary rules have clear, verbose descriptions and messages, with useful Markdown examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.