Add facilities to translate ebean exceptions to Spring DataAccessException #3258
Replies: 2 comments 2 replies
-
I'm not sure. What is the actual utility value of doing this? Noting that Ebean has an exception hierarchy much like Springs (inspired by Springs data access exceptions and SQLException mapping in fact and works in a similar way with database platform specific mapping based on SQLState and errorCode obtained from the SQLException). The mybatis exception translators are mapping from SQLException and that spring jooq one is as well. We don't have that case with Ebean which already has that SQLException mapping logic. So it's a different situation to the one with mybatis and jooq. It isn't clear to me exactly why you want to map the ebean exception hierarchy to the spring one. The mapping of SQLException is a different thing / different case. |
Beta Was this translation helpful? Give feedback.
-
Maybe produce a Proof-Of-Concept with a spring repository using ebean and showing an exception being mapped? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
For better Spring integration, we could add an ExceptionTranslator to translate ebean exceptions to Spring DataAccessException like mybatis and jooq?
Beta Was this translation helpful? Give feedback.
All reactions