AW: Getting primary key of object after save

2007-02-26 Thread Peter Schröder
hi sam, i think that you can get the pk through the snapshot of the object after it has been committed to the context: http://cayenne.apache.org/doc12/accessing-pk-and-fk-values.html -Ursprüngliche Nachricht- Von: Sam Shah [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Februar 2007

Re: AW: Getting primary key of object after save

2007-02-26 Thread Andrus Adamchik
That's an old piece of docs. It still works though, but it is much easier to use DataObjectUtils: http://cayenne.apache.org/doc12/dataobjectutils.html Andrus On Feb 26, 2007, at 10:33 AM, Peter Schröder wrote: hi sam, i think that you can get the pk through the snapshot of the object