Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
- Subject: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
- From: Rich <email@hidden>
- Date: Thu, 15 Mar 2012 16:20:42 +1300
Hi Paul / Ray,
I'm not doing any real display of the data, The WO site is purely a provider for a basic (Prototype) web-service and just returns the entity objects in JSON. What I want to do is a descending sort on the PK so only the latest batch of objects get returned.
I know I could have a 'creation' stamp or something like that, but the 'id' get returned as part of the JSON representation and is used to marry up with CoreData on the iOS platforms. I'm using RESTKit and this is the recommended approach. Since the web-service is responsible for creating the Entity object initially, I want to return the last '25' or so entities in a batch and the simplest way (considering this is only a prototype), is to return the batch of highest 'id's.
Rich
On 15/03/2012, at 3:57 PM, Paul Yu wrote:
Why are you sorting on id column? My patterns is to use a displaySequence column.
On Wednesday, March 14, 2012 at 10:33 PM, Rich wrote:
|
_______________________________________________
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