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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to