[ 
https://issues.apache.org/jira/browse/OPENJPA-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476341
 ] 

Sherry Shen commented on OPENJPA-94:
------------------------------------

 When I use
           <property name="openjpa.jdbc.SynchronizeMappings"
                      
value="buildSchema(SchemaAction=\"add,delete-table-contents\")"/>
my test failed to run with error,

Caused by: java.util.MissingResourceException: org.apache.openjpa.persistence.Pe
rsistenceProductDerivation:java.io.IOException: org.xml.sax.SAXException: file:/
data/tests/ejb/issue_2356c2/META-INF/persistence.xml [Location: Line: 29, C: 57]
: org.xml.sax.SAXParseException: Element type "property" must be followed by eit
her attribute specifications, ">" or "/>".
        at org.apache.openjpa.lib.conf.ProductDerivations.reportErrors(ProductDe
rivations.java:323)

> Allow MappingTool and persistence.xml to support drop-create for database 
> schema
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-94
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-94
>             Project: OpenJPA
>          Issue Type: New Feature
>            Reporter: Shay Banon
>         Attachments: openjpa_94.zip
>
>
> Currently, in the persistence context, one can define:
> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" />
> Which causes OpenJPA to build the database schema based on the mapping 
> defined. Currently, there is no way to define it to drop tables if they 
> exists before creating the database schema. This is very useful for tests 
> that drop (if exists) and creates new tables for each test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to