Great. Do you want to tidy up the commits on your pull request. https://github.com/apache/cayenne/pull/61/commits
Ari On 6/12/2015 2:19am, Johannes wrote: > Dear list, > > I want to bring back my idea from February into discussion. It was about > introducing a setToManyTarget Method in the CayenneDataObject, but it > was not finished (mail archive: > http://mail-archives.apache.org/mod_mbox/cayenne-dev/201501.mbox/%3C0DBA750D-A847-4CC1-8EAC-9DCFB5A0FECA% > 40objectstyle.org%3E ) > > > My last action was, implementing Andrus advice to retrieve old > DataObjects, which can be deleted manually: > > // sync... > List<? extends DataObject> removed = > o.setToManyTarget(Artist.PAINTINGS.getName(), newPaintings, > true); > > // delete ... or not > // o.getObjectContext().deleteObjects(removed); > > > This was implemented immediatly by myself with following commit, but I > forgot to mention it on the list: > It was implemented in > https://github.com/jotpe/cayenne/commit/b930886a9ab24fa8b82a7e8efeaf6d2437bd5d96 > > > Best Regards. > Johannes > -- --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A