December 9th, 2009
6:45 pm
Posted under JPA
Permalink
Tags Eclipse, Eclipselink, JPA, Tip
This can be done a couple of different ways :-
- From the Project context menu, select JPA Tools/Create Tables from Entities. This will drop and create the whole schema based on the entity definitions.
- Alternatively, you can configure persistence.xml to drop and create the whole schema before each run as detailed in the example file here.
Comments Off on Creating database tables from Entities in Eclipse