Duplicate detection in new save logic #663
Closed
runningjustin
started this conversation in
General
Replies: 1 comment 1 reply
-
For old version, No exception translator For new version, duplicate id, duplicate key (If there is unique constraint) and illegal associated id (If the foreign key is real, that means there are foreign constraints) will be automatically translated by Jimmer, that is No matter SQL exception is translated for not, you can use ExceptionTranslator to handle it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that with the new save logic (0.8.170) there's a SaveException.NotUnique exception thrown for non-uniqueness. In the previous version (0.8.132) we were using the e.cause to get the PSQLException and parse the error message. This is helpful as it tells us the index name so we can provide a more specific error message. Is it still possible to provide the database driver exception or are you not even getting this in the new version?
Beta Was this translation helpful? Give feedback.
All reactions