Transfer Object Use - Dymanic Loading of Related Objects

glenn <[email protected]>
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <[email protected]>
Hi

Can anyone provide me with some strategies of how to dynamically load related objects from a TransferObject(TO). Since the client interacts and operates with TOs it sii logical that the client may ask the TO for its related object. For example asking a Object, Car to get its Owner. Consequently, the TO would either need to have this loaded already or dynamically retrieve this. 

Question : 
1. if the client had a issued this line against the TO object Car, car.getOwner(), then how would the TO get the Owner?
2. What are the strategies ( I can only think of dynamic proxies)?
3. Is this bad/good practice?

public class Car
{
    public Owner geOwner()
    {
        How should be done???? This needs to get it related object from the server (lazy loading) but from here.
    }
}


Thanks
Glenn

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.