Where is the Persistence tool window in Intellij IDEA 15?
Asked Answered
P

5

18

I want to generate model Class from mysql database, but I cannot find the persistence tool window which is easily searched in IDEA 14.

Prefiguration answered 20/12, 2015 at 2:42 Comment(0)
A
9

The persistence support is available in IntelliJ IDEA Ultimate Edition (and not in the Community Edition, I think). When you create a new project in for example IntelliJ IDEA 15.0.3 EAP (build 143.1453.5), the New Project dialog opens:

New Project dialog

There you can for example select "Java Enterprise" in the left panel and "JavaEE Persistence (2.0)" in the "Additional Libraries and Frameworks" list. Now the Persistence panel can be opened via the View | Tool Windows | Persistence menu. The Persistence panel is visible here in the bottom left part:

IntelliJ IDEA with persistence panel

Abuttals answered 20/12, 2015 at 11:44 Comment(1)
@gloomy.penguin: if you want to add JavaEE Persistence to your project later, you can follow the advice from Mr D: https://mcmap.net/q/652975/-where-is-the-persistence-tool-window-in-intellij-idea-15.Abuttals
B
28

If you haven't included JavaEE Persistance when you created your project as @Freek de Bruijn suggested, you can go into:

File - > Project Structure - > Modules -> + -> "JPA"

That will enable persistence under Tool windows as well if, like me, you checked out your project from version control. Took me quite a bit of time to find that setting actually.

Bolshevist answered 17/3, 2016 at 5:3 Comment(1)
Well hidden feature.Stratopause
A
9

The persistence support is available in IntelliJ IDEA Ultimate Edition (and not in the Community Edition, I think). When you create a new project in for example IntelliJ IDEA 15.0.3 EAP (build 143.1453.5), the New Project dialog opens:

New Project dialog

There you can for example select "Java Enterprise" in the left panel and "JavaEE Persistence (2.0)" in the "Additional Libraries and Frameworks" list. Now the Persistence panel can be opened via the View | Tool Windows | Persistence menu. The Persistence panel is visible here in the bottom left part:

IntelliJ IDEA with persistence panel

Abuttals answered 20/12, 2015 at 11:44 Comment(1)
@gloomy.penguin: if you want to add JavaEE Persistence to your project later, you can follow the advice from Mr D: https://mcmap.net/q/652975/-where-is-the-persistence-tool-window-in-intellij-idea-15.Abuttals
C
6

Echoing what @0x6C38 said here. File-> Project Structure -> Modules -> + then type in JPA.

enter image description here

Then you will have it in the Tool Windows. enter image description here

Cracow answered 17/5, 2020 at 18:30 Comment(0)
C
0

If the persistence tool window is not visible then maybe it will help to add the Framework Support with this:

In the project window. Right click at the name then 'Add Framework Support...'

Enable here the JPA support.

Codi answered 1/8, 2019 at 11:30 Comment(0)
S
0

If the persistence tool windows can not be found, you can firstly try to open from view settings:

View -> Tool Windows -> Persistence

Persistence menu

If the item is not found, add JPA Framework to the module by:

File -> Project Structure -> Modules -> + -> JPA

Then it may appear a prompt saying:

The following libraries are missing: javaee.jar

Click Fix button aside and click OK to download jar files, then click OK to save and exit. Repeat opening from view settings:

View -> Tool Windows -> Persistence

Squinch answered 7/6 at 7:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.