updateOld


Description:

public bool updateOld (T old, T newer)

Updates an existing object in the database, only changing modified fields.

This method compares the old and new objects and only updates columns where values have changed. The 'id' property from the old object (or newer if old is null) is used to identify the row to update.

Parameters:

old

The original object (can be null, in which case newer.id is used)

newer

The updated object with new values

Returns:

true if an update was performed, false if nothing changed