Persistence Tool Window
At the top hierarchical level are JPA- and Hibernate-enabled modules. One level below are configuration files, and <persistence-unit> and <session-factory> elements. Further down in the hierarchy are mapping files, persistent classes, etc.
The tool window lets you create new items such as configuration files, <persistence-unit> and <session-factory> elements, persistent classes and fields, navigate to related source code in the editor, open consoles and entity-relationship diagrams, and more.
Title bar icons
|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.|
|Expand all the nodes.|
|Collapse all the nodes.|
Context menu commands
|ER Diagram||For a persistence unit or session factory: open an entity-relationship diagram for the selected persistence unit or session factory.|
|Console (Ctrl+Shift+F10)||For a persistence unit or session factory: 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: associate the selected persistence unit or session factory with a database or DDL data source. See Associating persistence units and session factories with data sources.|
|Assign Naming Strategies||For a session factory: associate the selected session factory with a Naming Strategy implementation.|
|New (Alt+Insert)||Create a new item such as a persistent class, or configuration or mapping file, etc. See Using the New command.|
|Jump to Source (F4)||Open the selected file in the editor and switch to the corresponding code fragment.|
|Generate Persistence Mapping||Generate persistent classes and object/relational mappings for them. See Generating managed entity classes and O/R mappings.|