• 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: Qualifier through relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier through relationship


  • Subject: Re: Qualifier through relationship
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 4 Dec 2009 11:23:45 +1100

On 03/12/2009, at 10:25 PM, Riccardo De Menna wrote:

> Ok ok... I suck at writing examples as I incorrectly explained myself.
>
> The relationship is a toMany so... rewording my request:
>
> I want all the records from the 'Book' entity that have an 'authors' relationship that CONTAINS a specific record coming form the 'Author' entity.

new EOKeyValueQualifier(Book.AUTHORS, EOQualifier.QualifierOperatorContains, author)

Hint: read javadoc :-)

Note: some suggest this doesn't always work with some databases.

> On 03/dic/2009, at 12.10, Stefan Klein wrote:
>
>> Hi,
>>
>> new EOKeyValueQualifier(_Book.AUTHOR, EOQualifier.QualifierOperatorEqual, author)
>>
>> EOF is doing the rest
>>
>> Stefan
>>
>> Riccardo De Menna schrieb:
>>> Hi,
>>>
>>> How do I build a fetch specification that qualifies objects based on the content of relationship and not an attribute?
>>>
>>> In other words let's say I want all the records from the 'Book' entity that have an 'author' relationship to a specific record in the 'Author' entity.
>>>
>>> Riccardo De Menna
>>>
>>> _______________________________________________
>>> 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

with regards,
--

Lachlan Deck



 _______________________________________________
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: 
 >Qualifier through relationship (From: Riccardo De Menna <email@hidden>)
 >Re: Qualifier through relationship (From: Stefan Klein <email@hidden>)
 >Re: Qualifier through relationship (From: Riccardo De Menna <email@hidden>)

  • Prev by Date: Re: Dr. Miguel 'Optimistic Locking' Arroz [was Re: WebObjects stress Testing tool?]
  • Next by Date: Re: Dr. Miguel 'Optimistic Locking' Arroz [was Re: WebObjects stress Testing tool?]
  • Previous by thread: Re: Qualifier through relationship
  • Next by thread: Re: Qualifier through relationship
  • Index(es):
    • Date
    • Thread