- In the Persistence tool window, expand the Hibernate Facets node, and select the desired session factory.
- On the context menu, choose or click
. - In the Choose Console pop-up window, do one of the following:
- To launch a console, choose choose JPA Console from the Open New list.
- To open an already running JPA console, choose the name of the desired console from the Running list.

-
Type the desired commands in the upper section of the console. Note syntax and error highlighting, code completion, intention actions, and quick fixes.

- To start a new line, press EnterEnter.
-
Use the basic and advanced editor shortcuts.
In particular, you can jump to declaration of a table or its column in the corresponding
Java class, if you place the caret at the table or column name, and press Ctrl+BCtrl+B.
Alternatively, keep the CtrlControl key pressed, and hover your mouse pointer
over the reference to a table or column. So doing, the reference turns to a hyperlink, which allows you to jump
to the declaration in the source code:

-
To run the commands, click the
button on the toolbar or press
Ctrl+EnterCtrl+Enter.
- View the query execution result in the Result tab.
- View and analyze information messages and query execution details in the Output tab.

