Home> Products> IntelliJ IDEA> Features & Screenshots> Hibernate

JPA / Hibernate


IntelliJ IDEA includes the complete JPA/Hibernate support, thoroughly integrating it with the full set of its productivity-boosting features: smart, Hibernate-aware code completion, syntax and error highlighting, on-the-fly code inspections with instant quick-fixes, intention actions and Hibernate-aware refactorings, beefed up with dedicated visual tools, Hibernate Query Language console with assisted query editing and debugging, live templates, tight Spring integration, which enables recognition of Hibernate properties in Spring code, and more.


JPA 2.0 Support

  • JPA 2.0 @ElementCollection attribute type, plus freshly allowed attribute types in embeddable objects (@OneToOne, @Embedded, etc.)
  • JPA 1.0/2.0 with Hibernate provider will not throw false-positive warnings about certain JPA specification violations that occur because of differences in JPA and Hibernate.

 

to the top

Smart Coding Assistance and Refactoring

IntelliJ IDEA provides smart completion for Hibernate configuration files. Smart completion also works for named JPA/Hibernate queries ? from language syntax to parameter names.

Hibernate Code Completion

 

to the top

Full support of JPA/EJB/Hibernate Query Languages

Detects queries in Java and other code, provides full assistance with parameters, according to project and database structure.

EJB QL Completion

 

to the top

Code Inspections and Quick-Fixes

Find and repair all Hibernate errors with a set of dedicated quick-fixes and intention actions. Wrong property names, improper references ? all this and more is spotted and fixed.

Hibernate Quick-Fixes

 

to the top

Hibernate and JPA ER Diagram

This diagram lets you view and modify your Hibernate entities and their relationships. You can automatically create various Hibernate classes through context menus, manage relationships with drag-and-drop, and instantly examine how source code changes affect the Hibernate model in your application.

EJB Persistence Diagram

 

to the top

Generating Persistence Mappings from Database Schema

IntelliJ IDEA allows you to quickly generate persistence mappings from any database schema:

Generating Persistance Mappings

 

to the top

Hibernate QL Console

IntelliJ IDEA includes the dedicated console for creating and running HQL queries, with complete coding assistance, syntax and error highlighting, and validation.

HQL Console

IntelliJ IDEA can automatically generate a set of entity classes matching a data source structure and then generate JPA or Hibernate mappings, according to column types and relationships.

 

to the top

Integration with Spring

IntelliJ IDEA cross-integrates Spring and Hibernate frameworks. It supports Hibernate properties completion and validation in Spring configuration files and fully supports handling of Spring session factories in Hibernate entities.

 

to the top