On Fri, 14 Jan 2005 07:42:41 -0500, Patrick McElhaney <[EMAIL PROTECTED]> wrote: > Okay, let's say that a web site has both a blog and a product catalog. > While blog entries and products are generally unrelated concepts, both > products and blog entries can have comments. It's possible to disable > commenting on an individual product or blog entry. And a product or > blog entry that has commenting enabled may not actually have any > comments. > > In this case, I may only have one Comment.cfc that is shared by both > the product catalog and blog applications. There's only one copy of > Comment.cfc on the server.
And what would your CommentDAO look like? Would you assume that the primary keys for your blog entries and for your products were the same type and distinct values? e.g,. use UUIDs for both? Again, the usage scenarios determine a number of aspects of how you design your systems. I suspect Java folks would immediately think of Commentable as an interface and have BlogEntry and Product both implement it (but then they'd probably rely on Hibernate to manage all the persistence anyway :) -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 5 invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- 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]
