as i understand it (that was a warning) you would have one DAO per business object but only one Mapper object for your whole application. You would wind up with code something like
 
<cfset myOrder = OrderDAO.loadOrder(orderKey)>
 
vs
 
<cfset myOrder = Mapper.map.queryForObject("selectOrder",orderKey)>
 
Check out the iBatis project documentation (ibatis.com) - they provide both a DAO and a Mapper framework (SQLMaps) so there's some discussion there (and in the mailing list archives) about the two approaches.
 
 
/t


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Ferraro
Sent: Friday, May 27, 2005 4:32 PM
To: [email protected]
Subject: [CFCDev] DAOs vs Mappers

Can someone give me a brief overview of what the difference is between a mapper and a DAO? They seem somewhat similar.

----------------------------------------------------------
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).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
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).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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

Reply via email to