Nando, I am not sure I follow exactly. Are you saying that Publications containing authors is a "conceptual" idea that does not need to be implemented by the actual bean? Thereby saying since authors belong to publications just go directly to authors gateway?
I like the idea of things not being coupled (the previous response). So lets say I had a detail page which is where I would need a pub entity bean. Of course on the detail page I would also need a list of authors (no cateogories, lets keep it simple). Then I would have the pub bean ex: PubBean.GetTitle() PubBean.GetDatePublished() And then for other stuff, I would go directly to the gateways: Authors = AuthorsGateway.GetByPublication( PubBean.GetID() ) // Loop over authors Am I following?? Thanks for the help. ...................... Ben Nadel Web Developer Nylon Technology 6 West 14th Street New York, NY 10011 212.691.1134 212.691.3477 fax www.nylontechnology.com "Vote for Pedro" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nando Sent: Wednesday, December 14, 2005 2:05 PM To: [email protected] Subject: RE: [CFCDev] Object relations, getting, setting, and validation Oh My! Ben, One thing i noticed awhile ago was that it really helped to keep my feet on the ground at this stage. You can conceptualize a model from different perspectives. Alan Shalloway in Design Patterns Explained talks about Conceptual, Specification, and Implementation perspectives. You can get really confused trying to *implement* a model from a conceptual perspective. What i'm saying is that you might not need the gateway composed into your bean to display what you need to display to the user. You might only need the gateway feeding a display. Conceptually, a publication will have authors and categories. And you might debate whether the publications should be composed into categories or the other way around. Or both. But practically, you'll probably only need to instantiate the bean when you're editing a publication. The rest of the time, a simple publication gateway can just pull the records you need using a single query with a join. i hope that makes sense. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
