• 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: Entity inheritance and sorting: Bug or my fault?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entity inheritance and sorting: Bug or my fault?


  • Subject: Re: Entity inheritance and sorting: Bug or my fault?
  • From: Guido Neitzer <email@hidden>
  • Date: Sun, 9 Jul 2006 17:26:23 +0200

On 09.07.2006, at 16:55 Uhr, Ken Anderson wrote:

SortOrderings on fetch specs for things not in the database will not work. You should fetch them first, then sort them using EOSortOrdering.sortedArrayUsingKeyOrderArray. Are you SURE it's working for Contact? Is there a field in the database called 'name' that maybe your entity doesn't use and it just happens to work?

I got it now. Huah, that's ugly.

When I qualify on my abstract superclass "Contact" EOF includes all attributes from all subclasses. Therefor it seems to be able to satisfy my request for ordering by "name", because ONE of the subclasses has a name attribute.

But, when I qualify on a subentity, which doesn't have this attribute, it fails because the attribute is not reachable from this subentity. This part of the whole thing was my fault.

So, I have to correct myself: For me this is a bug in EOF, because it should fail in BOTH cases because the attribute "name" is not reachable from ALL entities I want to fetch. It just shouldn't work.

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


  • Follow-Ups:
    • Re: Entity inheritance and sorting: Bug or my fault?
      • From: Anjo Krank <email@hidden>
References: 
 >Entity inheritance and sorting: Bug or my fault? (From: Guido Neitzer <email@hidden>)
 >Re: Entity inheritance and sorting: Bug or my fault? (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: Entity inheritance and sorting: Bug or my fault?
  • Next by Date: Re: Entity inheritance and sorting: Bug or my fault?
  • Previous by thread: Re: Entity inheritance and sorting: Bug or my fault?
  • Next by thread: Re: Entity inheritance and sorting: Bug or my fault?
  • Index(es):
    • Date
    • Thread