On Aug 29, 2011, at 11:54 AM, Tony Giaccone wrote: > I have not done the updates of those objects yet but I will. In the DTO I'm > going to have some way of identifying which fields have changed and then > update the DB based on that information.
In case of updating object properties, Cayenne will take care of this logic for you. Just find the right Cayenne DataObjects for a DTO and update all its values. Then call context.commitChanges(), and Cayenne will figure out which properties need to be committed. This is all built in. Could be a bit more complicated with relationships, and creating new objects, but still doable. Andrus
