• 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
problem w/sort by non-class-property PK on RO/cached entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem w/sort by non-class-property PK on RO/cached entities?


  • Subject: problem w/sort by non-class-property PK on RO/cached entities?
  • From: Patrick Robinson <email@hidden>
  • Date: Wed, 15 Dec 2004 15:36:03 -0500

Normally, you can specify non-class-property attributes (e.g. primary key attributes) in the sort orderings array of a fetch specification.

However, if I have Read-Only/Cache-In-Memory entities:

On the first attempt to fetch the objects for one of these, sorting by the non-class-property PK, it throws a "valueForKey(): lookup of unknown key" exception (re: the non-class-propery PK attribute), and does not issue the SQL to fetch the objects.

After that (if I backtrack and keep going), it proceeds without issue, generating the SQL (complete with the appropriate ORDER BY clauses), and I don't see the exception again, even when requesting the objects for previously unfetched, RO/cached entities.

This smells like a bug to me.  Has anyone else run into this?

--
Patrick Robinson
AHNR Info Technology, Virginia Tech
email@hidden

_______________________________________________
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


  • Prev by Date: Re: help - multiple users are getting the same session
  • Next by Date: Re(2): help - multiple users are getting the same session
  • Previous by thread: Re: Calendar with WebObjects
  • Next by thread: WOPopupbutton and Likert scales
  • Index(es):
    • Date
    • Thread