ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin" <clinton.be...@gmail.com>
Subject Re: abstract resultmap?
Date Sun, 30 Jul 2006 00:30:56 GMT
Yes, you can.


On 7/29/06, Bing Lu <mfcplus@yahoo.com> 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 <clinton.begin@gmail.com> 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 <mfcplus@yahoo.com> 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
>

Mime
View raw message