Hi Paul,

On 2/28/07 6:45 PM, "Paul Marcotte" <[EMAIL PROTECTED]> wrote:

> To Mr. Bell: "User.authenticate()" looks very ActiveRecord to me (which
> I am not using).  I'll hazzard a guess that User (as a transient) has
> UserDAO "LightWired" into it. ;-)

Absolutely correct in concept. I love being able to determine my object
composition without having to worry about whether or not I need to compose
Singletons within transients.

I will make a small conceptual distinction. ActiveRecord is strictly
speaking (as the name implies) used for cases where the object represents a
record in a single table. Because I use some ORM features, I don't actually
do ActiveRecord. I do however compose persistence via my beans as to me it
is lexically more OO even though User.save() is not a definitively better or
worse solution to the almost identical UserService.save(User) service layer
approach. Also, I *do* use service methods for aggregate access. I never
liked the idea of User.getList() - I prefer to set UserCollection =
UserService.getList().

Best Wishes,
Peter





You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to