Tool to Execute JPQL Queries?

Rintoul picture Rintoul · Oct 23, 2009 · Viewed 33.6k times · Source

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 execute them.

Of course it would probably require me to do quite a bit of configuration so that it would be aware of my JPA entities, etc., but I guess it could be done... Anyone know of such a tool?

Thanks.

Answer

Pascal Thivent picture Pascal Thivent · Oct 23, 2009

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.