cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: AW: Getting primary key of object after save
Date Mon, 26 Feb 2007 09:44:40 GMT
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:sam@ish.com.au]
> Gesendet: Montag, 26. Februar 2007 06:57
> An: user@cayenne.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
>


Mime
View raw message