On 9/02/2003 2:18 AM, "Zamek" <[EMAIL PROTECTED]> wrote:

> thanks a lot, it works, but when I call doSelectJoinXXX, I cannot reference
> joined table fields.
> Forumtopic has a field named FT_NAME
> When I call BaseForumnotes.getForumtopic(), it has  getFtName() method.
> doSelectJoinXXX.getFtName() doesn't works.

doSelectJoinXXX() populates the fields for the current object and
per-populates the XXX list for the related object so that getXXX() (in your
case getForumtopics()) does not require further database access.

It is not a join as in an SQL join where all columns exist with repeated
data for the parent object, but rather an object equivalent whereby you have
the parent object that includes a List containing the child objects.

Does this make more sense?  This is far easier than having to deal with a
standard SQL join as you do not have to manually code for changes in parent
objects.

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com


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

Reply via email to