Re: Fetch Only Non-Empty To-Many
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.