# Hibernate and JPA facet pages

> **TL;DR**
> `File | Project Structure | Modules | <module> | Hibernate` or `JPA`
>
>
>
> `File | Project Structure | Facets | Hibernate (<module>)` or `JPA (<module>)`

Use this page to manage configuration and object/relational mapping files, and to download missing libraries.

| Item | Description |
| --- | --- |
|  Descriptors |  Use the controls in this section to manage configuration and O/R mapping files such as `hibernate.cfg.xml` for Hibernate, and `persistence.xml` and `orm.xml` for JPA.    ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (NetBeans), `Ctrl+N` (Visual Studio), `⌘ N` (Visual Studio (macOS)), `Alt+Insert` (Eclipse), `⌘ N` (Eclipse (macOS)). Add an existing file or create a new one. In the dialog that opens, specify the file location and name.      ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.edit.svg) `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)). Replace the selected file with another (existing) file. In the dialog that opens, specify the file that you want to use as a replacement.      ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.remove.svg) `Alt+Delete` (Windows), `⌘ ⌦` (macOS), `⌘ ⌦` (IntelliJ IDEA Classic (macOS)), `⌘ ⌦` (macOS System Shortcuts), `Alt+Delete` (XWin), `Alt+Delete` (GNOME), `Alt+Delete` (KDE), `Alt+Delete` (Emacs), `Alt+Delete` (Sublime Text), `⌘ ⌦` (Sublime Text (macOS)), `Alt+Delete` (NetBeans), `Ctrl+R, D` (Visual Studio), `⌘ R, D` (Visual Studio (macOS)), `Alt+Delete` (Eclipse), `Alt+Delete` (Eclipse (macOS)). Remove the selected file from the list. In the dialog that opens, specify whether you want to physically delete the file. (Otherwise, only the file association with the facet will be removed.)   |
|  Default JPA Provider |  For JPA: When `persistence.xml` is created, this setting affects the `<provider>` element in that file. For example, `<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>` will be generated for EclipseLink. There will be no `<provider>` element if <no provider> is selected. |
| Fix |  If there are missing libraries, click this button to fix the problem. |

## See also

### Procedures

[Jakarta Persistence (JPA)](jakarta-persistence-jpa.html)  [Hibernate](hibernate.html)

