On 1/3/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
> 2. Would it seem crazy to, in my SQL, rename the fields (ex. SELECT
> daytime_phone AS DayTimePhone FROM foo) so that the interfaces were more
> consistent?

That would get my vote. One of the benefits of having the gateway
objects is that you can alias columns (and whatever other transforms
you want) and present a consistent view of the data - even if the
schema changes, you can often just modify the gateway object's SQL so
that the rest of the application doesn't need to change (except where
you need to add code to handle specific new columns perhaps).
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to