Re: retrieving PK immediately after saveChanges() ...
Re: retrieving PK immediately after saveChanges() ...
- Subject: Re: retrieving PK immediately after saveChanges() ...
- From: Gavin Eadie <email@hidden>
- Date: Tue, 10 Jun 2008 19:54:44 -0400
... newRecord.primaryKey() ?
... newRecord.primaryKeyInTransaction()
Calling this method will return the primary key of the given
enterprise object or if one has not been assigned to it yet, then it
will have the adaptor channel generate one for it, cache it and then
use that primary key when it is saved to the database.
I've spent a week laboring under some nasty (human) virus, so my brain
is slow. Only seconds after bopping the send button, I found the
'raw' variations of the above which don't return Strings (unless the
key IS a String) ... Gav
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden