XML Import delete

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XML Import delete

Stephen Rufle-2
We have been using the EntityImport/EntityImportDir process to add data
to our database. I would like to know is there a similar process that
can be used to remove data. I tried looking up "Entity sync" in google
but think it is related to contact management.
Reply | Threaded
Open this post in threaded view
|

Re: XML Import delete

BJ Freeman
there is a feature in web tools to remove all the relational keys.
once you do that you can delete relational data. only be careful that
you remove the complete data, otherwise you application will have errors
when you put the Relational keys back in.

if your doing this for Testing then and your using the Derby built-in
data base there is a target in the build file for zipping it. then you
can add data and reset to the state before by unzipping the file.

if you have a database that is external to ofbiz then you will have to
do your own script to back and restore you database.



Stephen Rufle sent the following on 2/24/2010 4:07 PM:
> We have been using the EntityImport/EntityImportDir process to add data
> to our database. I would like to know is there a similar process that
> can be used to remove data. I tried looking up "Entity sync" in google
> but think it is related to contact management.
>