-
Sub-task
-
Resolution: Done
-
Major
-
2.0.0.Beta4
-
None
When you setup JPA in Forge 1.x you get :
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
In Forge 2.Beta instead of drop-and-create you get only create :
<property name="javax.persistence.schema-generation.database.action" value="create"/>
Instead you should have
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
And by the way, why not generating the DDL script as well ? You could have :
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/> <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/> <property name="javax.persistence.schema-generation.scripts.create-target" value="<projectName>Create.ddl"/> <property name="javax.persistence.schema-generation.scripts.drop-target" value="<projectName>Drop.ddl"/>