I have a mysql database that I want to add the functionality of adding a new table to the database. I could probably easily find the example of the JPQL for this but how would I then automatically generate the entity for this new table so that I could reference it in the rest of my JPA code for updating and deleting from the table I usually reference the entity not the actual table itself.
The Entities I have now I've used eclipe to generate from the tables I created. But after deployment we obviously won't have Eclipse to do this so we need it done automatically every time a table is created.