Tool to Execute JPQL Queries?

后端 未结 8 1473
我在风中等你
我在风中等你 2020-12-23 17:00

Is there any sort of tool available which allows one to execute JPQL queries against a database \"directly\"? I would like to type JPQL queries directly into a window and e

相关标签:
8条回答
  • 2020-12-23 17:40

    News from 2013: NetBeans 7.3 will have a built-in JPQL query tool:

    https://blogs.oracle.com/geertjan/entry/test_jpql_with_netbeans_ide

    https://blogs.oracle.com/geertjan/resource/run-jpql-query-4.png

    0 讨论(0)
  • 2020-12-23 17:40

    My google-fu has come up with a working link for Jpa Query Tool: http://www.f1cd.ru/soft/base/j/jpa_query_tool/jpa_query_tool_06/jqt-0.6b.zip

    0 讨论(0)
  • 2020-12-23 17:45

    Until Eclipse Dali gets a generic JPQL editor you can use Hibernate Tools. Hibernate Tools works with Dali and provides a HQL/JPQL query editor which uses Hibernate to execute the queries.

    An alternative would be to use the JPA Query Tool [JQT], an Interactive JPA query editor and runner. It might be closer to what you're looking for (runs as a standalone application).

    alt text

    Update: I removed the tool suggested for NetBeans, the project is inactive and doesn't provide anything.

    0 讨论(0)
  • 2020-12-23 17:54

    Did you check whether NetBeans, Eclipse or IntelliJ do what you want?

    Especially with the Hibernate Plugin for Eclipse, this should be possible (if you use Hibernate as your JPA Backend).

    0 讨论(0)
  • 2020-12-23 17:56

    You also have Hibernate Tool Suite, which is based on NetBeans

    0 讨论(0)
  • 2020-12-23 18:01

    Looks like IntelliJ 10 will complement the HSQL editor with an JPQL editor. (Assuming that branch 96.xxx is version 10)

    • http://youtrack.jetbrains.net/issue/IDEA-55361
    • http://youtrack.jetbrains.net/issue/IDEA-54622
    0 讨论(0)
提交回复
热议问题