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: Chuck Hill <email@hidden>
- Date: Wed, 6 Feb 2008 18:18:56 -0800
On Feb 6, 2008, at 6:16 PM, Mike Schrag wrote:
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);
Show off!
:-P
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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