Re: EOF inserts PK automatically
Re: EOF inserts PK automatically
- Subject: Re: EOF inserts PK automatically
- From: Anjo Krank <email@hidden>
- Date: Mon, 22 Nov 2004 12:53:44 +0100
Am 22.11.2004 um 12:44 schrieb Ruenagel, Frank:
1. A user wants to insert an new record
2. A stored procedure creates an empty record with default values
3. The stored procedure returns the pk of the newly created record to
WO.
4. WO fetches the record with EOUtilities.objectWithPrimaryKeyValue
5. WO presents this "empty" record to the user
6. The user makes his changes and the EO is saved with ec.saveChanges()
The cross-thread with Sako! is confusing me:) But still: if your
saveChanges fails for whatever reason, you're still left with a
half-inserted object, aren't you? Or are you deleting it afterwards?
When? How?
Cheers, Anjo
_______________________________________________
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