How to create an entity Java file after ...?
I created a jpa project and asked Idea to create some Java entity classes from the database. Now the project was created, I added new tables to the database, refreshed the datasoure (and I can see those new tables in the datasource). How can I ask Idea to generate Java entity classes for the new tables?
Please sign in to leave a comment.
Thai Dang Vu wrote:
In "Project" tool window select "JavaEE:Structure".
Find your Persistence Unit in the tree and select "Generate
Mappings"->"By Database Schema" in context menu.
Regards,
Gregory Shrago
Sorry, I cannot imagine what to do. Could you post a screenshot?
http://blogs.jetbrains.com/idea/2009/03/generating-persistence-mappings-from-database-schema/
Thai Dang Vu wrote: