Re: Overriding ERRest output
Re: Overriding ERRest output
- Subject: Re: Overriding ERRest output
- From: David Avendasora <email@hidden>
- Date: Wed, 1 Sep 2010 12:03:14 -0400
On Sep 1, 2010, at 11:41 AM, Mike Schrag wrote: So I want to override not just what the entities are called (just for this one request - not for all requests against Account and Identity) but I also want to flatten some of the relationships and rename attributes.
I would make a non-EO and map them in and out. I suppose we might be able to add some syntax to ERXKeyFilter to do flattening, but it seems like that's just s recipe for complication. At some point it just isn't the EO graph -- it's some view of the EO graph -- and that sounds, to me, like a new entity type.
Whew! That's where I ended up, too. This is not a representation of the EOF object graph anymore. Trying to force ERRest to perform contortions in this situation is going to be far more work than just creating a non-EO class and then pass in all the pieces and let ERRest process that into an XML file.
Thanks Mike!
Dave |
_______________________________________________
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