• 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: accessing the primarykey???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing the primarykey???


  • Subject: Re: accessing the primarykey???
  • From: Farrukh Ijaz <email@hidden>
  • Date: Tue, 13 Jul 2010 14:08:34 +0300

On 2010-07-13, at 1:41 PM, Theodore Petrosky wrote:

> I need a qualifier that gets a primary key...
>
> is the primary key accessible in a qualifier like this?
>
> versionQual = Version.JOB.dot(Job.<primaryKey()>).eq(something);
>
> My primary key is the Job Number....

In dataflex and cobol times, PK were used in query's where clause. Today PK is left for DB to manage relationships internally. You should look into modify the Model and add a job number column. This will give you to benefits. One you don't need to worry about the PK, second, if your original record is deleted and you need to have the same code again, in EOF it won't be that easy from the front-end as it uses sequences. There are other benefits too but I don't remember yet :)

Farrukh

>
> Ted
>
>
>
> _______________________________________________
> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: accessing the primarykey???
      • From: Kieran Kelleher <email@hidden>
References: 
 >accessing the primarykey??? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: accessing the primarykey???
  • Next by Date: Re: EOF and meaningful, modifiable PKs
  • Previous by thread: Re: accessing the primarykey???
  • Next by thread: Re: accessing the primarykey???
  • Index(es):
    • Date
    • Thread