If your User object is deleted (say, outside Cayenne or in a different
Java application) before you try saving, you'll get an exception because
Cayenne will not be able to generate a correct UPDATE statement. The
UPDATE statement that is generated references the User's primary key,
which is now gone, and is therefore an error. Also worth looking at is
the Optimistic Locking features, in case the row is altered outside of
your application. Cayenne could still detect this situation when
saving.
/dev/mrg
-----Original Message-----
From: moraru_et..pymac.com [mailto:moraru_etc@spymac.com]
Sent: Wednesday, January 26, 2005 1:16 PM
To: cayenne-use..bjectstyle.org
Subject: about object graph
Hi, i want to know how the object graph is updated when a , let's say,
User
object is saved on the session and meanwhile it is deleted from db.
This archive was generated by hypermail 2.0.0 : Wed Jan 26 2005 - 16:41:36 EST