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

Support for SQLException translation #617

Closed
timowest opened this issue Jan 6, 2014 · 2 comments
Closed

Support for SQLException translation #617

timowest opened this issue Jan 6, 2014 · 2 comments
Milestone

Comments

@timowest
Copy link
Member

@timowest timowest commented Jan 6, 2014

For better Spring support it should be possible to customize the Exceptions thrown by Querydsl SQL to be compatible with Spring.

One way to achieve this is to use an SQLExceptionTranslator contract like this http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/jdbc/support/SQLExceptionTranslator.html#translate%28java.lang.String,%20java.lang.String,%20java.sql.SQLException%29

@luisfpg
Copy link

@luisfpg luisfpg commented Feb 6, 2014

It would be nice to also have the bind parameters at this point.
In our specific problem, we'd like to log queries only on errors, and log it with parameters, so we can try to isolate that particular problem.
When working with dynamic queries with several ifs for conditions, this would help tracking down bugs.

@timowest
Copy link
Member Author

@timowest timowest commented Feb 8, 2014

Released in 3.3.1

@timowest timowest closed this Feb 8, 2014
@timowest timowest added this to the 3.3.1 milestone Apr 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants