Persistence is missing from Tool Windows

Answered

I'm currently using IntelliJ IDEA 2020.1.2 (Ultimate Edition) and I persistence tools are missing from the left side menu and they are missing from the View/ Tool Windows. Where can I find them? The help menu says they should be there. Any help will be appreciated. 

0
5 comments

The reply was provided in the support ticket you've created. Please use only one way of support (either forum or a ticket) to avoid duplication.

0

I'll answer my own question in case anyone else has this issue. Go to File - > Project Structure - > Modules -> and hit the "+" (plus sign) and add + -> "JPA" to the project. This will create the persistence tab on the left. 

3

Thanks for the update!

As described in the documentation at https://www.jetbrains.com/help/idea/working-with-the-persistence-tool-window.html#524a93db, you need to have either JPA or Hibernate enabled.

The exact steps for enabling JPA can be found at https://www.jetbrains.com/help/idea/enabling-jpa-support.html .

In most cases the project would be imported from Gradle or Maven and these facets/dependencies will get configured automatically. 

0

Dear Serge,

You mention "In most cases the project would be imported from Gradle or Maven and these facets/dependencies will get configured automatically."

How to fix the cases when the JPA facet is not detected automatically from Gradle?

Our project uses gradle and it depends on spring-boot-starter-data-jpa and on hibernate-core, but somehow IntelliJ Ultimate does not detect them and does not automatically add the JPA module.

I tried to add it manually in the Modules tab, but still the Persistence tool window is not displayed.

Everything is configured via annotations, so there is no persistence.xml file.

How can I display the Persistence tool window?

 

0

Sorin Postelnicu Please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with a small sample project to reproduce this issue.

0

Please sign in to leave a comment.