Antonio Goncalves created FORGE-1443:
----------------------------------------
Summary: database.action property in persistence.xml should be
drop-and-create
Key: FORGE-1443
URL:
https://issues.jboss.org/browse/FORGE-1443
Project: Forge
Issue Type: Sub-task
Components: Scaffold
Affects Versions: 2.0.0.Beta4
Reporter: Antonio Goncalves
Fix For: 2.x Future
When you setup JPA in Forge 1.x you get :
{code}
<property name="eclipselink.ddl-generation"
value="drop-and-create-tables"/>
{code}
In Forge 2.Beta instead of {{drop-and-create}} you get only {{create}} :
{code}
<property name="javax.persistence.schema-generation.database.action"
value="create"/>
{code}
Instead you should have
{code}
<property name="javax.persistence.schema-generation.database.action"
value="drop-and-create"/>
{code}
And by the way, why not generating the DDL script as well ? You could have :
{code}
<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"/>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira