addToManyTarget() changes PersistenceState.COMMITTED to PersistenceState.MODIFIED

From: Mike Kienenberger (mkienen..laska.net)
Date: Wed Sep 24 2003 - 12:34:03 EDT

  • Next message: Andrus Adamchik: "Re: addToManyTarget() changes PersistenceState.COMMITTED to PersistenceState.MODIFIED"

    Why does CayenneDataObject.addToManyTarget() change
    PersistenceState.COMMITTED to PersistenceState.MODIFIED for the source data
    object?

    Why should CayenneDataObject not be patched to remove these lines?

            if (persistenceState == PersistenceState.COMMITTED) {
               persistenceState = PersistenceState.MODIFIED;
            }

    The official behavior is breaking on my read-only data objects that have
    mutable one-to-many relationships to other data objects.

    -Mike



    This archive was generated by hypermail 2.0.0 : Wed Sep 24 2003 - 12:33:50 EDT