Anyone come up with a good relational mapping structure? Say I had a the following


<addressBook>
        <persons>
                <person id="0" name="Joe" emailAddress="[EMAIL PROTECTED]"/>
                <person id="2" name="James" emailAddress="[EMAIL PROTECTED]"/>
                <person id="3" name="Frank" emailAddress="[EMAIL PROTECTED]"/>
                <person id="4" name="Tim" emailAddress="[EMAIL PROTECTED]"/>
        </persons>
        <mailingLists>
                <mailingList id="5" name="friends">
                        <personRef id="2"/>
                        <personRef id="4"/>
                        <personRef id="5"/>
                </mailingList>
                <mailingList id="5" name="friends">
                        <personRef id="2"/>
                        <personRef id="4"/>
                        <personRef id="5"/>
                </mailingList>
        </mailingLists>
</addressBook>

And I have Objects:

AddressBook
Person
MailingList

I'd like my MailingList to contain a vector of Person References... Even if I have to have a PersonRef Class... that's cool. but can I have my PersonRef Class contain a Reference to a Person object?

Jeremy


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to