cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes <>
Subject setter for toMany in generated classes
Date Sat, 05 Dec 2015 15:19:41 GMT
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: )

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,

// 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

Best Regards.

View raw message