• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode and WOUnitTest 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Xcode and WOUnitTest 2 (From: Christian Pekeler <email@hidden>)

  • Prev by Date: Re: Xcode and WOUnitTest 2
  • Next by Date: Eclipse + WO Model change + clean = still dirty
  • Previous by thread: Re: Xcode and WOUnitTest 2
  • Next by thread: ... has exited due to signal 10 (SIGBUS) ?
  • Index(es):
    • Date
    • Thread