Hey Ray,

I just got done arguing with Doug Hughes about this, and I think it
really comes down to which school of thought you come from.

> all the SQL code for a particular bean

For me, cohesion takes precedence over editing two files instead of
one.  I'm probably twisting your words (not to use against you,
though!), but to me what you said summarizes why my opinion is from
the singular school - all the SQL code for a particular (instance of)
a bean lies in one file, but all of the SQL for dealing with multiple
instances lies in a seperate gateway file.

Gateways can get complicated, applying collections of filters, joins
in SQL, etc.  I think this begins to dilute the purpose of the DAO.

I just made a long blog post on DAOs at
(http://clearsoftware.net/client/index.cfm?mode=entry&entry=3D1115E7-E081-2BAC-6953DA4394855DDB)
and talk about this some in an update at the end.

-joe


-- 
For Tabs, Trees, and more, use the jComponents:
http://clearsoftware.net/client/jComponents.cfm
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to