Hi gus,
I would recommend use ERXKey for sort ordering.
EOSortOrdering order = WorkDay.ID.desc();
NSArray<EOSortOrdering> order = WorkDay.ID.descs();
assuming "id" is a class property.
sharpy..
On 06/10/2008, at 12:22 PM, WebObjects wrote:
Hello, well Im fetching some data, and I encounter here something,
when I created the EOModel and generate the javaclases, I got a
method :
public static NSArray<WorkDay> fetchWorkDaies(EOEditingContext
editingContext, EOQualifier qualifier, NSArray<EOSortOrdering>
sortOrderings) {
well, before I realize its third argument it;s a EOSortOrdering, I
was tryin to send it a ERXSortOrdering, and then as you can imagine
Eclipse complain about it, if this is wonder shouldn't use the
ERXSortOrdering, what to do?
just use EOSortOrdering?, will I loss something using it instead of
EOSortOrdering?
or from where I call the method I did this, knowing that
EOSortOrdering its the supperclass of ERXSortOrdering.
NSArray<EOSortOrdering> order = new NSArray(new
ERXSortOrdering("id",ERXSortOrdering.CompareDescending));
and the call the method fetchWorkDaies(EOEditingContext
editingContext, EOQualifier qualifier, NSArray<EOSortOrdering>
sortOrderings)
well let me know if actually I can fetch and sort using the id.
thanks
gus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]