如何在 Eclipse3.5 中自动完成 JPQL 查询

发布于 2024-10-09 14:00:00 字数 170 浏览 0 评论 0原文

如何在 Eclipse 中自动完成 JPQL 查询。

(注意:我不想使用第三方工具,顺便说一句,JBoss Hibernate 工具无法与我一起工作,我认为它需要 hibernate 特定文件才能开始工作(hibernate.cfg.xml 等))

编辑: 我正在使用 Eclipse 3.5

How to get JPQL queries autocompoleted for me in Eclipse.

(note: Idon't want to use thrid party tools, BTW, JBoss Hibernate tools cannot work with me, I think it needs hibernate specific files to start working(hibernate.cfg.xml etc.))

EDIT:
Iam using Eclipse 3.5

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

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

发布评论

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

评论(4

好听的两个字的网名 2024-10-16 14:00:01

Eclipse 目前没有 JPQL 编辑器(自动完成、语法突出显示等)。 JPA Tools 项目(WTP 下)中有一个项目刚刚开始构建这样的编辑器,但至少要到 Eclipse 3.7(2011 年夏季)才可用。

第三方可能有这样的编辑器,但我不知道它会怎样或它们有多好。

Eclipse does not currently have a JPQL editor (auto-complete, syntax highlighting, etc.). There is a project that is just getting started in JPA Tools project (under WTP) to build such an editor, but this will not be available at least until Eclipse 3.7 (Summer 2011).

Third parties may have such an editor, but I do not how that might be or how good they are.

半衾梦 2024-10-16 14:00:01

您是否在 EJB 项目上启用了 JPA 方面?请参阅右键单击项目/项目方面。

Have you enabled JPA facet on your EJB project? See at right click on project/project facets.

绻影浮沉 2024-10-16 14:00:01

请注意,此功能仅适用于 Eclipse 3.7 Milestone 7 中的 NamedQuery 注释:
http://bugs.eclipse.org/337930

Beware that this feature will only be available for NamedQuery annotations from Eclipse 3.7 Milestone 7 :
http://bugs.eclipse.org/337930

泅渡 2024-10-16 14:00:01

从“帮助”菜单转到 Eclipse Marketplace,然后搜索 JBoss Tools。从整个工具列表中,选择 Base 和 Hibernate Tools。见图。
输入图片此处描述

Go to Eclipse Marketplace from the Help menu and search for JBoss Tools. From the whole list of tools, select Base and Hibernate Tools. See pic.
enter image description here

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