I think I understand what you're getting at...

Public class Parent

Public class FirstChild extends Parent
Public class SecondChild extends Parent

FirstChildDAO calls getFirstChild statement
SecondChildDAO calls getSecondChild statement

FirstChild.sql

<statement firstchild>
Select id, name from Parent where id = 1

SecondChild.sql

<statement secondchild>
Select id, name from Parent where id = 2

-----Original Message-----
From: Brandon Goodin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 05, 2005 9:04 AM
To: ibatis-dev@incubator.apache.org
Subject: Re: Inheritance


I'm not tracking what you mean. Classes in a database? number of items
in a list? based on a data member of the parent class? subclass has
access to "this". Ira, throw me a bone here my friend. What you are
saying makes absolutely no sense. Please, give us some more context.
Provide an example of what you are talking about. Then! we can
help...maybe ;-)

Thanks :)
Brandon

On 5/4/05, Hoffman, Ira <[EMAIL PROTECTED]> wrote:
> All,
> 
> I have a table that stores different classes that are derived from the

> same base class. The difference is the number of elements in a list. I

> want the list to be initialized in the constructor...so the size of 
> the list is based on a data member of the parent class. Each sub class

> has access to this. Is there a way to handle this with ibatis?
> 
> Thanks,
> Ira
> 
> ----------------------------------------------------------------------
> --------
> Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu) that may be confidential, proprietary
copyrighted and/or legally privileged. It is intended solely for the use
of the individual or entity named on this message.  If you are not the
intended recipient, and have received this message in error, please
notify us immediately by reply e-mail and then delete it from your
system.
>
------------------------------------------------------------------------
------
>

Reply via email to