Cloning a CayenneDataObject

From: Paul Logasa Bogen II (pl..amu.edu)
Date: Mon Feb 09 2009 - 15:18:03 EST

  • Next message: Michael Shea: "Cayenne + master/slave mysql database replication"

    I am writing a web application with Wicket on the front end and Cayenne
    on the back end. When a user clicks "Save As" in my application I want
    to save the current working object with a new key. My suspicion is if I
    just blank out the key and do a context.commitChanges() I will just
    change the key and any other information for the object instead of
    creating new rows in the database. Is this correct? And what is the
    recommended way to clone or copy an object to a new one?

    plb



    This archive was generated by hypermail 2.0.0 : Mon Feb 09 2009 - 15:27:12 EST