I am currently using EclipseLink JPA and in my persistence.xml file i have this property set
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
The value
field currently set to drop and create tables on each run is causing my test data to be deleted. Unfortunately, EclipseLink does not support an update
schema property that integrates with any changes to Entities in my project. I read somewhere, Hibernate-tools can be used to update the database schema without deleting current records?
I have tried this property
<property name="eclipselink.ddl-generation" value="create-tables"/>
while it does keep my data, it doesn't update table schema.
In my persistence.xml can i include the hibernate property ?
property name="hibernate.hbm2ddl.auto" value="update"