Sorry, maybe our terms are different? My Data Access Object (DAO) that works with the DB returns only a query object. My DataGateway (DG) creates the object from the query and returns it, or passes it to the DAO in primitives. Then I have the Data Object itself. Three parts to this equation for me. The DAO does not have knowledge of the objects because it deals only in database terms. The DG is the translator/mapper from table to object.
Matthew Small Web Developer American City Business Journals 704-973-1045 [EMAIL PROTECTED] -----Original Message----- From: Tanguy Rademakers [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 3:06 PM To: CF-Talk Subject: Re: DAOs, objects, structs, or strings >I use 3 because then the DAO shouldn't have knowledge of the Widget object. It's a WidgetDAO - it exists to load and persist Widgets. By your logic, your WidgetDAO shouldn't return Widgets either, just a struct (or maybe even a query) of a given widget's information... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220751 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

