Re: Qualifier against target entity?
Re: Qualifier against target entity?
- Subject: Re: Qualifier against target entity?
- From: Jesse Tayler <email@hidden>
- Date: Sun, 08 Dec 2013 13:48:54 -0500
I think those all ultimately depend on the primaryKey() which I think can return an array of keys but otherwise is your way to get that likely integer number you’re using
of course sometimes we have another key used to search and sort since primary keys are really for our friend the database - but you would have had to have added that yourself so this is the only thing I can think of.
On Dec 8, 2013, at 1:41 PM, Ken Anderson <email@hidden> wrote:
> Of course, but not a class property... I swear there was a way to say:
>
> Student != EO
>
> But maybe I'm just senile :)
>
>> On Dec 8, 2013, at 1:27 PM, Theodore Petrosky <email@hidden> wrote:
>>
>> what about the primary key? it is unique to the EO.
>>
>>
>>> On Dec 8, 2013, at 12:44 PM, Ken Anderson <email@hidden> wrote:
>>>
>>> No, I already have an EO I want to exclude... Not an attribute of an EO.
>>>
>>>> On Dec 8, 2013, at 12:39 PM, Theodore Petrosky <email@hidden> wrote:
>>>>
>>>> Student.STUDENT_LAST_NAME.notIn("Smith")
>>>>
>>>> from what I see there is: "in", "notIn", "inObjects", "noInObjects"
>>>>
>>>> is this what you are looking for?
>>>>
>>>>
>>>>
>>>>
>>>>> On Dec 7, 2013, at 11:01 PM, Ken Anderson <email@hidden> wrote:
>>>>>
>>>>> All,
>>>>>
>>>>> I know I’ve done this before, but I do it seldom enough that I can’t remember. I want to create a qualifier to select a bunch of objects but to exclude one of the objects that might match the qualifier:
>>>>>
>>>>> Give me all the Students where grade > 80 and Student is not “Joe Smith”
>>>>>
>>>>> How do I do that again? and is there any special whizzy wonder ERX Key to do it?
>>>>>
>>>>> Thanks,
>>>>> Ken
>>>>> _______________________________________________
>>>>> 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
_______________________________________________
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