Yes, you can. 


On 7/29/06, Bing Lu <[EMAIL PROTECTED]> wrote:
so what if I have two classes that extends an abstract
class? that means I can't have a resultmap of the
abstract class with submaps of children still right?

--- Clinton Begin < [EMAIL PROTECTED]> wrote:

> Well...what would it mean to support abstract type?
> That would be rather
> useless.  :-)
>
> I think what you're asking is to we support
> polymorphic queries, and the
> answer is YES.
>
> The wiki notes this as an undocumented feature:
>
>
http://opensource.atlassian.com/confluence/oss/display/IBATIS/Not+Yet+Documented
>
> You may find the unit tests helpful though, it's a
> pretty simple feature to
> use.
>
>
http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/Documents.xml
>
http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/DiscriminatorTest.java
>
> Cheers,
> Clinton
>
> On 7/29/06, Bing Lu < [EMAIL PROTECTED]> wrote:
> >
> > hi, does the mapper support abstract resultmaps?
> or
> > the class mapped must be instantiable
> >
> > thanks
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to