[forge-issues] [JBoss JIRA] (FORGE-1443) database.action property in persistence.xml should be drop-and-create

Ivan St. Ivanov (JIRA) issues at jboss.org
Thu Jan 23 16:10:28 EST 2014


     [ https://issues.jboss.org/browse/FORGE-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan St. Ivanov reassigned FORGE-1443:
--------------------------------------

    Assignee: Ivan St. Ivanov

    
> 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
>            Assignee: Ivan St. Ivanov
>             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


More information about the forge-issues mailing list