Generate Persistence Mappings - Does nothing at all
Hello - I am trying to use IntelliJ's Generate Persistence Mappings feature to create entity classes from an existing database schema. I followed the directions listed here: http://jpdevelopment.blogspot.com/2015/11/create-entity-objects-from-db-schema.html , however, when I get to the final step and click OK, a box appears saying "The OR mapping is about to be generated. Do you want to continue?" I click yes, and then....................nothing. Nothing at all. The box disappears but there is no visible effect. The entities are not generated, and there is no error message at all. Nothing happens.
I checked the logs, but there is no information in the logs either. No new logging statements are written when I click the button. So seemingly this feature just does completely nothing.
I really need this feature for a project as I am trying to generate entities for a database which has >500 tables. Please help!

Please sign in to leave a comment.
Hello,
Does it work if you select only one scheme/table? Please report new issue on YouTrack attaching logs folder zipped ("Help | Show Log in...") after restarting IDE and reproducing the issue: http://youtrack.jetbrains.com/issues/IDEA.
Unfortunately it does not work even if I only select one table. I restarted the IDE and reproduced the issue, and created IDEA-205793 for it.
Thanks!
Hi,
I run into the same problem.
I solved it with a change in the persistence window, you have to define a persistence unit.
Right click on the items(modules?) in the persistence window then new -> persistence unit.
Solve errors like missing root folde path and things.
Then you can generate the files.
I don't think the process to generate the files from the tables really need this, but there is some precheck in the process that is failing without any error message in logs or any windows.