cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Logasa Bogen II <>
Subject Cloning a CayenneDataObject
Date Mon, 09 Feb 2009 20:18:03 GMT
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?


View raw message