cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder <Peter.Schroe...@freenet-ag.de>
Subject AW: Getting primary key of object after save
Date Mon, 26 Feb 2007 08:33:12 GMT
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