Re: How to fetch eo with a specific relationship
Re: How to fetch eo with a specific relationship
- Subject: Re: How to fetch eo with a specific relationship
- From: Mike Schrag <email@hidden>
- Date: Wed, 6 Feb 2008 21:16:11 -0500
For no reason other than I like its expressiveness, if you use
Wonder you can just do this:
EOFetchSpecification fs = new EOFetchSpecification("Product",
ERXQ.equals("category", aCategory), null);
... or even better, use the Wonder eogen templates that use ERXKey:
EOFetchSpecification fs = new
EOFetchSpecification(Product.ENTITY_NAME,
Product.CATEGORY.is(aCategory), null);
... or even better, use the Wonder eogen templates fetch methods w/
ERXKey:
NSArray<Product> products = Product.fetchProducts(editingContext,
Product.CATEGORY.is(aCategory), null);
ms
_______________________________________________
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