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
> 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:sa..sh.com.au]
> Gesendet: Montag, 26. Februar 2007 06:57
> An: use..ayenne.apache.org
> Betreff: Getting primary key of object after save
>
>> Is there any way to get the primary key of the object immediately
>> after you save it in cayenne on the client side in 3 tier. We need
>> this to refetch the object after it has been saved
>
This archive was generated by hypermail 2.0.0 : Mon Feb 26 2007 - 04:45:31 EST