I have a couple of books on order from the recommendations of this group on my 
last thread.

But while I'm waiting, I am trying to improve my design on a current project.

The concept I am currently having trouble with is how to composite multiple 
instances into a parent object.

For example: (actually pretty close to what I'm trying to do)

One has a person object/cfc
This person can have 0 to many address objects/cfcs: Home, Work and/or Vacation 
Home for example.

Assuming this data is in a standard relational database.
Person_Table
ID

Address_Table
ID
Person_ID (FK)
Type

Where does one put the logic of figuring out what address(es) a person has and 
creating all the objects, Person.init(), Address.init() some other method or 
object in between?

TIA

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



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