You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2010/08/09 20:10:16 UTC

[jira] Commented: (OPENJPA-1760) Should deleteTableContents always delete really ALL content?

    [ https://issues.apache.org/jira/browse/OPENJPA-1760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896650#action_12896650 ] 

Rick Curtis commented on OPENJPA-1760:
--------------------------------------

It sounds like this may be another bug? From the user manual [1] : deleteTableContents: Execute SQL to delete all rows from all tables that OpenJPA knows about. 

Could you write a simple unit test that recreates this problem?

Thanks,
Rick

[1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_schema_schematool

> Should deleteTableContents always delete really ALL content?
> ------------------------------------------------------------
>
>                 Key: OPENJPA-1760
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1760
>             Project: OpenJPA
>          Issue Type: Question
>    Affects Versions: 2.0.0
>         Environment: Win XP, Postgres 8.4, OpenJPA 2.0.0 
>            Reporter: Oliver Bayer
>
> At my usecase not all tables are managed by openjpa so not all of them are listed with the class-tag inside persistence.xml. I set up openjpa to delete the table contents for developping with the following property:
> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(SchemaAction='add,deleteTableContents')"/>
> But now all contents are deleted even the one of tables which aren't listed inside persistence.xml. 
> Shouldn't openjpa only delete contents from tables which are configured plus the openjpa_sequence_table rather than deleting all contents from the whole database? Is this a bug or is there a property which I have to set to get the described behaviour?
> Greets Oli

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