Thoughts on why that would be better or worse than this in the manager:

public void addComent( int articleID, commentTO commentTO ) {
 commentDAO.save( articleID, commentTO );
}

In that case you don't need to call the articleDAO at all, nor is the
article responsible for doing anything with the comment. And if you had
the articleID as part of the commentTO you could actually just do:

commentDAO.save( commentTO )


> >From the ArticleManager's point of view, this is all that happens:
> 
> var article = ArticleDAO.getArticle( articleID );
> var comment = article.addComment( commentTO );
> ArticleDAO.createComment( comment );
> 

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