• 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:06:06 +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'm absolutely sure that it works for "Contact". And yes, there IS a column called "name" in the database, but this is only used by "Company", not by "Person" and not by "InternalUser".


And yes, I'm absolutely sure that all this stuff works on the same code, because "UserList" inherits from "ContactList" which inherits from "EmbeddedList".

The only code in "UserList" is to override "entityName()". I return "Contact" on "ContactList" and "InternalUser" on "UserList". That is the only difference of the two components. And that is why I was stunned that it was working in one case and not working in the other.

When I think of all this, I know now that I will run into another problem ... but this is not directly related to the problem here.

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


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