Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 15618 invoked from network); 30 Jul 2006 00:40:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jul 2006 00:40:29 -0000 Received: (qmail 86612 invoked by uid 500); 30 Jul 2006 00:40:28 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 86600 invoked by uid 500); 30 Jul 2006 00:40:28 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 86589 invoked by uid 99); 30 Jul 2006 00:40:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Jul 2006 17:40:28 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.73.178.175] (HELO web60512.mail.yahoo.com) (209.73.178.175) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 29 Jul 2006 17:40:26 -0700 Received: (qmail 97257 invoked by uid 60001); 30 Jul 2006 00:40:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=svnEWRdeloDj+PlS0ETngn2ZbcHJfvwtLCmNO3v20PlkcYDJdQjPauffVss4ZPWRxMC+OL36nHmvtEVK1i/l0CZHON2Fq9diRtrkfjqnuKPuZuEYSxZEI6JDPoYQvcHxcA3+V2GlXgoi/uKpN8aZ0GEoabl2vHgFK1KbxHEBTb4= ; Message-ID: <20060730004005.97251.qmail@web60512.mail.yahoo.com> Received: from [68.100.47.154] by web60512.mail.yahoo.com via HTTP; Sat, 29 Jul 2006 17:40:05 PDT Date: Sat, 29 Jul 2006 17:40:05 -0700 (PDT) From: Bing Lu Subject: Re: abstract resultmap? To: user-java@ibatis.apache.org In-Reply-To: <16178eb10607291730y6305d85ds5097d7cc4c6640e2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N so in the example testDomain.Document can be an abstract class? And also if I want to insert/update a book or newspaper what query do I call? I see update/insertDocument but no update/insert operations for books and Newspaper thanks --- Clinton Begin wrote: > Yes, you can. > > > On 7/29/06, Bing Lu 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 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 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 > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com