I would pass the category ids into the "EntryDAO" since the entryDAO's job is to deal with the persistence of one complete Entry. The category ids are a property of the Entry and thus the EntryDAO should save/update/read/delete that data as necessary for that particular Entry.
A DAO doesn't necessarilly = access to a single table in the database. A DAO maps to a single entity in your model. Alot of times your entities are equivilent to a row in a table in the database but othertimes (alot of times) they span out into different tables just as your example does. Bill On 11/23/05, Ben Nadel <[EMAIL PROTECTED]> wrote: > > > > So I am trying to get my head around all these new OOP things for > ColdFusion. I feel like I have a better understanding of entity beans and > how they get updated, but one thing that I have not seen an example of is > how join tables get updated. > > > > Let's say that I have a blog entry table "entry" and each entry can be > "joined" to related categories in the table "category_entry_jn" table. Now, > when I am updating my entry via a Form, do I pass category IDs to the entry > bean for updating the join table? Or does it get passed to EntryDAO? What > would these look like? > > > > EntryInstance.SetCategoryIDs(FORM.listCategoryID) ???? > > > > Thanks, > > > ben > > ...................... > > Ben Nadel > > Web Developer > > Nylon Technology > > 6 West 14th Street > > New York, NY 10011 > > 212.691.1134 > > 212.691.3477 fax > > www.nylontechnology.com > ---------------------------------------------------------- > 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] -- [EMAIL PROTECTED] http://blog.rawlinson.us If you want Gmail - just ask. ---------------------------------------------------------- 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]
