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
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
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
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).
Update: I removed the tool suggested for NetBeans, the project is inactive and doesn't provide anything.
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).
You also have Hibernate Tool Suite, which is based on NetBeans
Looks like IntelliJ 10 will complement the HSQL editor with an JPQL editor. (Assuming that branch 96.xxx is version 10)