Brian, why do you say that?

It'd make sense to me for have the BlogContentManager not know or care
about the components that make up an article.

If the ArticleDAO is responsible for persisting the state of a given
Article, it makes sense to me that it would have knowledge of that
Article's composition, and therefore know the names of the aggregated
comment component's DAO (or know of a service locator to get it).  It
wouldn't run the delete command explicitly, but use the comment's DAO.

-Joe


On Tue, 11 Jan 2005 15:00:34 -0500, Brian Kotek <[EMAIL PROTECTED]> wrote:
> I'd say whatever entity is managing both the articles and the comments
> (the "BlogContentManager") would be responsible for removing comments
> associated with deleted articles. I wouldn't think it should be the
> ArticleDAO's responsibility to remove comments.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Patrick McElhaney
> > Sent: Tuesday, January 11, 2005 2:22 PM
> > To: [email protected]
> > Subject: Re: [CFCDev] Newbie approach to Composite Entity pattern.
> >
> > Here's a question for those of you who think articles and comments
> > should be dealt with separately. What happens to the comments when an
> > article is deleted?
> >
> > --
> > Patrick McElhaney
> > 704.560.9117
> > http://pmcelhaney.blogspot.com
> > ----------------------------------------------------------
> > 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 www.mail-
> > archive.com/[email protected]
> 
> ----------------------------------------------------------
> 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 
> www.mail-archive.com/[email protected]
> 


-- 
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 
www.mail-archive.com/[email protected]

Reply via email to