I did something similar with some Cash stuff. One transaction can have multiple items. I get the one transaction object, then get the items. Here I actually have an object for each item and stick them into an array. That 'Array of Objects' is then put into the transaction object.
Make sense? And if you're not already using it, ColdSpring makes all the object creation in the Service cfc really easy and painless.
On 4/25/06,
Jeff Chastain <[EMAIL PROTECTED]> wrote:
I am playing with a simple little application and I am running into some questions on data access. I have a calendar object that along with other information, has one or more event objects associated with it. So, when I tell the calendar DAO to give me a calendar instance based upon a given id value, it goes to the database and pulls all of the details regarding that calendar. But, it gets to the point of needing to populate its event array and gets stuck. Does the calendar DAO know about an event gateway that can provide it with a list of events? This just sounds wrong, but I am not sure how else to do it.Any suggestions from the more experienced?Thanks.----------------------------------------------------------
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]
----------------------------------------------------------
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]
