• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOF inserts PK automatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: EOF inserts PK automatically (From: "Ruenagel, Frank" <email@hidden>)

  • Prev by Date: Re: EOF inserts PK automatically
  • Next by Date: Re: EOF inserts PK automatically
  • Previous by thread: Re: EOF inserts PK automatically
  • Next by thread: Re: EOF inserts PK automatically
  • Index(es):
    • Date
    • Thread