IntelliJ IDEA 14.0.0 Web Help

Persistence Tool Window

11.0+
View | Tool Windows | Persistence

The Persistence tool window shows your project items pertaining to JPA and Hibernate.

At the top hierarchical level are JPA- and Hibernate-enabled modules. One level below are configuration files, persistence units and session factories. Further down in the hierarchy are mapping files, persistent classes, etc.

The tool window lets you create new items such as configuration files and persistent classes, navigate to related source code in the editor, open diagrams and consoles, and more.

Title bar icons

Item Description
ConsoleOnTitleBar Select a persistence unit or session factory (or any of the subordinate elements) and click this icon to open the JPA or Hibernate console. See also, Working with the JPA Console and Working with the Hibernate Console.
icon_expand_all_on_title_bar Click this icon to expand all the nodes.
icon_collapse_all_on_title_bar Click this icon to collapse all the nodes.

Context menu

Item Description
ER Diagram For a persistence unit or session factory: use this command to open an ER diagram for the selected persistence unit or session factory.
Console (Ctrl+Shift+F10) For a persistence unit or session factory: use this command to open the JPA or Hibernate console for the selected persistence unit or session factory. See also, Working with the JPA Console and Working with the Hibernate Console.
Assign Data Sources For a persistence unit or session factory: use this command to associate the selected persistence unit or session factory with a database or DDL data source. See also, Associating Data Sources with Session Factories and Persistence Units.
Assign Naming Strategies For a session factory: use this command to associate the selected session factory with a Naming Strategy implementation.
New Use this command to create a new item such as a persistent class, or configuration or mapping file, etc.
Jump to Source (F4) Use this command to open the selected file in the editor.
Generate Persistence Mapping Use this command to generate persistent classes and metadata.

See Also

Last modified: 4 December 2014
comments powered by Disqus