Keeping track of the many as an array of objects is a large amount of overhead for very little gain, particularly if there are lots of related objects. Unless you have some compelling need to do it that way, I'd recommend simply getting a query containing the related data.

On 5/24/06, Matt Williams <[EMAIL PROTECTED]> wrote:
I have a one to many relationship between two tables, or objects. I assume I should somehow store the many in the bean of the one.
What is your preferred way of handling this?

An Array of objects of the many?
A query of the table with the many?
A structure...?
Other?

Would you handle this differently in a case where the many tends to be only one or two 98% of the time versus a case where the many is three or more most of the time?

Or am I thinking about it all wrong to begin with?

----------------------------------------------------------
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]

Reply via email to