#114 Removal of orphans in destination collection

closed
None
5
2007-09-27
2007-07-18
Richard
No

When mapping a source collection to destination sometimes it is desireable that the destination collection have elements removed that did not exist within the source.

Consider an Order with line items. When the source order is copied to the destination order you would want to remove line items from the destination order if it was not in the source.

Attached is a patch that implements this feature, it includes updates to the documentation and a test case. To enable the feature for a field the mapping would look like:

<mapping>
<class-a>company.a.Order</class-a>
<class-b>some.other.company.Order</class-a>

<field remove-orphans="true">
<a>lineItems</a>
<b>lineItems</b>
</field>
</mapping>

Discussion

  • Richard

    Richard - 2007-07-18

    Dozer Feature Remove Orphans

     
  • Matt Tierney

    Matt Tierney - 2007-07-19

    Logged In: YES
    user_id=1236069
    Originator: NO

    Thanks for submitting this patch. My initial thoughts are that this would be a good addition to the feature list. We will target the next release for adding this.

     
  • Matt Tierney

    Matt Tierney - 2007-08-16
    • assigned_to: nobody --> mhtierney
     
  • Matt Tierney

    Matt Tierney - 2007-08-22
    • status: open --> pending
     
  • Franz Garsombke

    Franz Garsombke - 2007-09-27
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks