有没有用于在应用程序外部测试即席 JPQL 查询的工具?

发布于 2024-09-28 08:53:40 字数 314 浏览 1 评论 0原文

我正在开发一个使用 JPA 进行持久性的项目,并且我正在尝试找到最干净、最有效的方法来测试 JPQL 查询。我更习惯 Hibernate 世界...您可以使用 Hibernate Tools 及其 Hibernate Console 在应用程序外部临时测试 HQL。我相信,如果您使用 Hibernate 作为 JPA 提供程序,该工具也支持 JPQL,但不幸的是,在本例中我使用 GlassFish 并使用 TopLink。

在一般的 JPA 世界中,是否有与 Hibernate Console l 大致相同的东西(或正在开发中)?如果没有,您在开发过程中修改 JPQL 查询的典型做法是什么?

I'm working on a project which uses JPA for persistence, and I'm trying to find the cleanest and most efficient means for testing JPQL queries. I am more accustomed to the Hibernate world... in which you can test HQL on an ad hoc basis outside the application, using Hibernate Tools and its Hibernate Console. I believe that tool also supports JPQL if you use Hibernate as the JPA provider, but unfortunately in this case I'm on GlassFish and using TopLink.

Are there any rough equivalents to the Hibernate Console l out there (or in development) in the general JPA world? If not, what is your typical practice for tinkering around with JPQL queries during development?

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

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

发布评论

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

评论(1

嗼ふ静 2024-10-05 08:53:40

最好的 IDE IntelliJ 怎么样?

http://blogs.jetbrains.com/idea/tag/jpa/

How 'bout IntelliJ, the best IDE around?

http://blogs.jetbrains.com/idea/tag/jpa/

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