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?

3 comments
Comment actions Permalink

Thai Dang Vu wrote:

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 tab les?


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

0
Comment actions Permalink

Sorry, I cannot imagine what to do. Could you post a screenshot?

0

Please sign in to leave a comment.