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