December 9th, 2009
6:45 pm
Creating database tables from Entities in Eclipse

Posted under JPA
Tags , , ,

This can be done a couple of different ways :-

  1. 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.
  2. 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

Comments are closed.