Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HibernateJpaDialect and HibernateExceptionTranslator throw SQLExceptionTranslator-provided exception instead of returning it #31409

Closed
jhoeller opened this issue Oct 11, 2023 · 0 comments
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@jhoeller
Copy link
Contributor

HibernateJpaDialect and HibernateExceptionTranslator have a code path where a custom SQLExceptionTranslator can be configured. However, any DataAccessException provided by such a custom translator is immediately thrown instead of returned.

@jhoeller jhoeller added in: data Issues in data modules (jdbc, orm, oxm, tx) type: bug A general bug labels Oct 11, 2023
@jhoeller jhoeller added this to the 6.0.13 milestone Oct 11, 2023
@jhoeller jhoeller self-assigned this Oct 11, 2023
@jhoeller jhoeller changed the title HibernateJpaDialect and HibernateExceptionTranslator throw SQLExceptionTranslator-provided DataAccessException instead of returning it HibernateJpaDialect and HibernateExceptionTranslator throw SQLExceptionTranslator-provided exception instead of returning it Oct 11, 2023
@github-actions github-actions bot added status: backported An issue that has been backported to maintenance branches and removed for: backport-to-5.3.x labels Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant