IntelliJ IDEA 2016.3 Help

Overview of Hibernate support

For working with Hibernate, IntelliJ IDEA provides:

  • The Hibernate Support plugin. This plugin is bundled with the IDE and enabled by default. See Making sure that the Hibernate Support plugin is enabled.
  • An ability to turn on Hibernate support for a module. You can do that when creating a project or module, or for an existing project or module. See Enabling Hibernate Support.
  • A Hibernate facet for managing Hibernate configuration files (hibenate.cfg.xml). See Hibernate and JPA Facet Pages.
  • The Persistence tool window that shows your Hibernate project items and lets you create new configuration files and persistent classes, navigate to related source code in the editor, open diagrams and consoles, and more. See Working with the Persistence Tool Window.
  • An ability to generate managed entity classes and object/relational mappings for them by importing a database schema or an EJB deployment descriptor file ejb-jar.xml. See Generating managed entity classes and O/R mappings.
  • Entity-relationship (ER) diagrams.

    The ER diagrams are accessed from the Persistence tool window (see Opening entity-relationship diagrams) and provide about the same set of functions as the tool window.

    Those functions are accessed as context menu commands. The context menus are different for the entity classes and the main diagram area (which corresponds to a <session-factory>).

  • A Hibernate console that lets you write and run HQL queries, and analyze the query results. See Working with the Hibernate Console.
  • Code completion in Java code including Hibernate annotations and their attributes, and also in Hibernate configuration and O/R mapping XML files.
  • Hibernate-specific code inspections.
  • Navigation markers in the left margin of the editor e.g. for jumping from entity classes to corresponding fragments in mapping files.

See Also

Last modified: 29 November 2016