Yes, I think it makes perfect sense to let the ArticleDAO manage storing the whole article and all of its comments, since the comments belong to the article and don't have any reason to exist outside of the article.
If storing comments becomes too much of a burden for ArtilceDAO, you might let ArticleDAO delegate the comments part to a CommentsDAO. The important thing is that clients of ArticleDAO don't have to have to worry about storing the individual pieces of an article. If you have access to a copy of Eric Evans' _Domain Driven Design_, look at the chapter on aggregates. "An AGGREGATE is a cluster of associated objects that we treat as a unit for the purpose of data changes." Patrick -- 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]
