• 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: Setting an attribute based on PK?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting an attribute based on PK?


  • Subject: Re: Setting an attribute based on PK?
  • From: Anjo Krank <email@hidden>
  • Date: Sun, 25 Apr 2004 18:47:45 +0200
  • Xx-reply-to: email@hidden

Am 25.04.2004 um 15:07 schrieb Ashley Aitken:
In these days and times, is the first sign of madness replying to your own posts?

Naw, only if you forget that you wrote them in the first place:)

On 25/04/2004, at 4:16 PM, Ashley Aitken wrote:
I want to set an attribute (not the primary key) based on the primaryKey value. But, of course, the primary key is not generated until during the initial saveChanges.

Just saw some code on WODev (thanks to all who have created that wonderful resource) for generating primary keys on insert. I will try that and see how it goes.

As you're using Project Wonder anyway, you could simple subclass ERXGenericRecord or implement the ERXGeneratesPrimaryKeyInterface. Of course, you then need to ask the DBC for the primary keys in advance for the next key(s).


Thanks to all those who have replied to my post ;-)


Cheers, Anjo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Setting an attribute based on PK? (From: Ashley Aitken <email@hidden>)
 >Re: Setting an attribute based on PK? (From: Ashley Aitken <email@hidden>)

  • Prev by Date: Re: Setting an attribute based on PK?
  • Next by Date: Re: Fwd: Pre Built Image Management Projects
  • Previous by thread: Re: Setting an attribute based on PK?
  • Next by thread: Re: Setting an attribute based on PK?
  • Index(es):
    • Date
    • Thread