JPA 1.0 中缺少 NVL() 的解决方法

发布于 2024-10-01 01:27:09 字数 77 浏览 1 评论 0原文

JPA 1.0 (Eclipselink 1.1.x) 中缺少的 NVL() 函数是否有解决方法?

谢谢你并致以最诚挚的问候

is there a workaround for the missing NVL() function in JPA 1.0 (Eclipselink 1.1.x)?

Thank you and best regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独孤求败 2024-10-08 01:27:09

据我所知,没有标准的解决方法。在 EclipseLink 2.1 中,仅通过 JPQL 支持 nvl()。但对于 EclipseLink 1.1,您似乎必须使用 EclipseLink 表达式,特别是 Expression.ifNull()。请参阅此线程Bug 219814 了解详细信息。

To my knowledge, there is no standard workaround. With EclipseLink 2.1 nvl() will just be supported through JPQL. But with EclipseLink 1.1, it seems you'll have to use EclipseLink Expressions, in particular Expression.ifNull(). See this thread and Bug 219814 for the details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文