Generating Entities from database in IntelliJ 2017 Ultimate

Answered

Hi, 

I wanted to generate entities from already existing schema through IntelliJ 2017 Ultimate. Below is the screen shot :


This is a  spring Boot project. Now, the question is no matter which scripted Extension I choose (Please see in the figure above)  , it asks me to where to save the entities and then nothing happens.
What am I doing wrong ?  

0
8 comments
Avatar
Permanently deleted user

Hi,

Following is the zipped log files.My OS is Windows 7 Enterprise. The last 3 operations you will see in the logs will be (In the order I mention)

a) Clicked on generate Pojos.clj
b) Clicked on generate Pojos.groovy
c) Exited IntelliJ

There are many log files. In idea.log ,  Line number 1994 was generated on operation a).

2017-05-09 06:31:40,943 [ 462594]   INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 3374 ms 

On Operation b) , Nothing displayed.

Please have a look at logs for more insights. If there is a specific log you want me to observe, please tell me the name. I see there are 10 log files (including .1 ,.2 , ... , .9 files).
I have zipped all of them. HERE is the link. This is google drive link.

 

0

Please check if the issue persists with the current version: http://www.jetbrains.com/idea/download/index.html.

0
Avatar
Permanently deleted user

I have updated it.

IntelliJ IDEA 2017.1.2
Build #IU-171.4249.39, built on April 25, 2017
Licensed to CDK Global, LLC

JRE: 1.8.0_112-release-736-b16 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

It still does not work. I think this is a bug.

0

I can't reproduce the problem, for me a dialog appears where the directory to save the result is specified, after I specify the directory and click OK, the POJO is generated.

The same dialog appears on File | Open. Does it display correctly for you?

0

It appears that it doesn't work if you select the "tables" folder in the database tool window, try selecting the individual table or multiple tables instead.

0
Avatar
Permanently deleted user

Yes, @Serge it works if we individually select the tables. However , I have 2 concerns here :

a) The option of generating pojo comes on right clicking on tables (as shown in figure above). Either it should not come or if it comes it should be working .Hence, this is bug.

b) I saw the pojo's are generated . But I wanted entities. That means ,no jpa annotation , no reference to linked tables/objects nothing is shown in pojos. Does IntelliJ have some other option for generating entities ?

0

Please sign in to leave a comment.