• 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: Fetch Only Non-Empty To-Many
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetch Only Non-Empty To-Many


  • Subject: Re: Fetch Only Non-Empty To-Many
  • From: David Elsner <email@hidden>
  • Date: Wed, 9 Jun 2004 09:46:14 +1000

Yes don't use EOModeler, just do it in code

NSArray bindings = new NSArray( new Object
[]{NSKeyValueCoding.NullValue});
EOQualifier q = EOQualifier.qualifierWithQualifierFormat("photoGallery
!= %@", bindings);
EOFetchSpecification fs = new EOFetchSpecification("Hotel", q, null);
NSArray hotelList = ec.objectsWithFetchSpecification(fs));


On 09/06/2004, at 8:39 AM, Hunter Hillegas wrote:

> I have an entity, Hotel, with a to-Many relationship to another
> entity, PhotoGallery.
>
> I am trying to construct a fetch in EOModeler that returns all of the
> hotels that have at least one photo  gallery (i.e., no hotels without
> photo galleries).
>
> Is there an easy way to do this?
> _______________________________________________
> 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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Fetch Only Non-Empty To-Many
      • From: Hunter Hillegas <email@hidden>
References: 
 >Fetch Only Non-Empty To-Many (From: Hunter Hillegas <email@hidden>)

  • Prev by Date: WOHyperlink Passing a value back...
  • Next by Date: Re: WOHyperlink Passing a value back...
  • Previous by thread: Fetch Only Non-Empty To-Many
  • Next by thread: Re: Fetch Only Non-Empty To-Many
  • Index(es):
    • Date
    • Thread