IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

JPA console

Last modified: 10 August 2022

Required plugin: Java EE: Persistence (JPA) (bundled)

Use the JPA console to write and run JPQL queries. It provides useful highlighting and completion for JPQL keywords, object and property names.

Make sure that persistence.xml contains the necessary information for the persistence unit to be able to run JPQL queries from the corresponding JPA console: the persistence provider, a list of persistent classes, and connection properties. For example, in case of EclipseLink and MySQL, it could be similar to the following:

The JPA console toolbar contains the following buttons: