Re: Xcode and WOUnitTest 2
Re: Xcode and WOUnitTest 2
- Subject: Re: Xcode and WOUnitTest 2
- From: Denis Frolov <email@hidden>
- Date: Fri, 08 Dec 2006 11:47:35 +0300
- Thread-topic: Xcode and WOUnitTest 2
on 12/7/06 7:28 PM, Christian Pekeler at email@hidden wrote:
>> EOEnterpriseObjectClazz.objectWithPrimaryKeyValue(ec, pk);
>> or
>> EOUtilities.objectWithPrimaryKeyValue(ec, entity, pk);
>>
>> These methods create qualifiers against primary key attribute which
>> is not selected as a class property in model.
>
> Why do you fetch objects by their primary key? I don't mean to sound
> condescending, but I don't think I've ever had to do this in my 8
> years of working with WO.
Sounds like an offtopic but consider the following case:
- A page has a list of article titles, each title leading to an article
page.
- Naturally, you want these links to be bookmarkable, so they look like
"/wa/InspectArticle?__key=100".
Fetching by primary key looks like a perfect solution in these case. It is
also used in Wonder's ERD2WDirectAction.
What would be an alternative better way of fetching objects in these case
without using primary keys?
---
Denis Frolov
Design Maximum MA
Tel: +7 863 2648211
Fax: +7 863 2645229
Web: http://www.designmaximum.com
_______________________________________________
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