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 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