IntelliJ IDEA enables object/relational mappings by means of the dedicated facets:
- Hibernate
- JPA
- EJB
For the details of EJB
support, refer to the section EJB. Support of
Hibernate
and
JPA
technologies in IntelliJ IDEA
includes:
- Automatic creation of the specific module structure and the necessary descriptors.
- Possibility to automatically download missing libraries.
- Support of Java beans.
- Mapping data sources, configured in IntelliJ IDEA, to the Hibernate session factories, JPA persistence units, or entity beans.
- Coding assistance, including code completion, syntax and error highlighting. IntelliJ IDEA recognizes specific syntax, highlights invalid references and other errors, and suggests quick fixes.
- Refactoring source code.
- Using Hibernate and JPA annotations.
- Possibility to view relationships in the Entity Relationship diagram.
- Templates to support configuration files.
- Surround with () for HQL/JPAQL (Ctrl+Alt+T)
Hibernate and JPA facets are often used in combination with the other facets, for example Spring or Seam.