IntelliJ IDEA 14.1.0 Help

Persistence Tool Window

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

ItemDescription
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_barClick this icon to expand all the nodes.
icon_collapse_all_on_title_bar Click this icon to collapse all the nodes.

Context menu

ItemDescription
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 SourcesFor 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 StrategiesFor a session factory: use this command to associate the selected session factory with a Naming Strategy implementation.
NewUse 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 MappingUse this command to generate persistent classes and metadata.

See Also

Last modified: 14 July 2015