Re: JavaEOGenerator: alphabetical sorting?
Re: JavaEOGenerator: alphabetical sorting?
- Subject: Re: JavaEOGenerator: alphabetical sorting?
- From: David LeBer <email@hidden>
- Date: Wed, 2 Jan 2008 17:32:53 -0500
On 2-Jan-08, at 5:20 PM, Art Isbell wrote:
On Jan 2, 2008, at 5:46 AM, Alexander Spohr wrote:
is JavaEOGenerator capable of sorting arrays alphabetical?
Not without JavaEOGenerator source modification.
I (used to) generate methods with attribute-names as args.
EOGenerator knew about <$foreach Attribute
classAttributes.@sortedNameArray do$>
How can I do this with JavaEOGenerator?
I modified all EOEntityProxy methods that return arrays of
properties to return arrays of properties sorted descending by
property name. An alternative would have been to create new methods
that return sorted arrays (e.g., sortedClassAttributes()).
I'm not using JavaEOGenerator, so keep that in mind...
But it is a WO application right? Could you build it against Wonder
(or add ERXArrayUtilties) to get the @sort array operators?
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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