Mark,

Speaking of interesting ... i have just such a scenario i'm looking for
options on. Design-wise what is clear at this point is that i have a primary
BO that handles some properties, and a variable number of secondary BO's
that handle language specific properties, depending on what languages are
enabled in the app. Editing / updating is handled via a single form, so it
all needs to hang together.

I'm not sure how to implement the DAO's here - or how the BO's should be
related, but my impulse so far as the BO's are concerned would be
composition, because there is a one to many relationship between the primary
and secondary objects. I may be wrong tho' ... perhaps a manager class
should contain and oversee the whole thing.

If anyone has any suggestions, i'd be very grateful. Something simple,
straightforward and obvious would be fine. I'm afraid i might tangle
something together needlessly complex simply because i've never worked
through this before.

grazie,
Nando

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Mark Mandel
Sent: Thursday, January 20, 2005 6:09 AM
To: [email protected]
Subject: Re: [CFCDev] Using queries to populate an object

....

The stuff Nando posted is good - however, do note, that sometimes BO's
can represent more than 1 row in a database on a single table,
especially if they are composite of several other BO's - and then it
can become interesting as to how you want to populate your Business
Objects in DAO's.

(And you can also get into a discussion on how to do things if you
want to pull an array of BO's from a method, howabout you go about
doing that - and even if you should...)

Hope that helps somewhat.

Mark
--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740
----------------------------------------------------------
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]



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

Reply via email to