So even when I use user.getAddress().getCity(), user.getAddress().getState(), user.getAddress().getZip(), I didn't make three separate calls to the database, just one? That's great.
>The answer to your second question about the address is to use composition >and have the User object hold a reference to an Address object. So you are >on track there. But you don't have to execute a query when you call >getAddress(), the Address object is already there and populated (at the same >time the User object is created) so you're just getting the state of the >Address object by calling methods on it. Basically you don't need to run any >queries beyond the first one that you use when you initialize the Address >object. > >Hope that helps. > >Brian > > > >On 6/1/05, Johnny Le <[EMAIL PROTECTED]> wrote: >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208196 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

