Re: accessing the primarykey???
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