如何关闭 Spring Roo 中的异常翻译?
Roo 实体中的 JPA 代码将其异常自动转换为 Spring 数据异常。由于我正在移植纯 JPA 代码(将 DAO 代码移动到实体中,这似乎是 Roo 富域模型的标准),因此我宁愿不修改 Spring 专有异常的 catch 块。
有人可以告诉我如何在我的实体中关闭此功能吗? Spring JIRA 建议这是可能的,但我不知道如何实现。
JPA code in Roo's entities have their exceptions automatically translated to Spring data exceptions. As I am porting pure JPA code (moving DAO code into the entities as seems to be standard with Roo's rich domain model), I'd rather not modify the catch blocks for Spring's proprietary exceptions.
Can someone tell me how to turn this off in my entities? The Spring JIRA suggests this is possible, but I don't see how.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除应用程序上下文中的以下行不起作用?
我在 roo 源代码中没有发现任何此类 roo 功能的痕迹。
Removing the following line in your appcontext doesn't work?
I haven't found any traces in roo source to such roo functionality.