Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 71883 invoked from network); 12 Dec 2005 14:10:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Dec 2005 14:10:58 -0000 Received: (qmail 37181 invoked by uid 500); 12 Dec 2005 14:10:54 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 37152 invoked by uid 500); 12 Dec 2005 14:10:53 -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 37137 invoked by uid 99); 12 Dec 2005 14:10:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2005 06:10:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jeffgbutler@gmail.com designates 66.249.82.192 as permitted sender) Received: from [66.249.82.192] (HELO xproxy.gmail.com) (66.249.82.192) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2005 06:10:52 -0800 Received: by xproxy.gmail.com with SMTP id i30so1085705wxd for ; Mon, 12 Dec 2005 06:10:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VEirdFXUW5x0zC7r7tXL1ahed4whFdJ18BqxRgRvro/OIkxPYvkbZzlhaxxGW/l/uYpXPdy9TonK47Z4GGaq12MmWhZ4nlfoD9oVanNUqlNIA7yDZaXa9vM2dTZQJwC6LV/b1RhzJ34s07L9FglGM6F9+JtdXJDQ0G8L/LnMFkk= Received: by 10.70.129.20 with SMTP id b20mr9466092wxd; Mon, 12 Dec 2005 06:10:30 -0800 (PST) Received: by 10.70.69.16 with HTTP; Mon, 12 Dec 2005 06:10:30 -0800 (PST) Message-ID: Date: Mon, 12 Dec 2005 08:10:30 -0600 From: Jeff Butler To: user-java@ibatis.apache.org Subject: Re: Abator - Java Code Generator for iBATIS - Runtime Errors In-Reply-To: <20d91bd50512111948q58a9a91bld2f7fb742141decd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11109_5055996.1134396630740" References: <20d91bd50512111642n513cc39ehc84da2f827de8415@mail.gmail.com> <20d91bd50512111755q9c4834ah86c0493af50a7d51@mail.gmail.com> <20d91bd50512111948q58a9a91bld2f7fb742141decd@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11109_5055996.1134396630740 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Regarding dynamic SQL - I think the capability you need is already in Abator. The XML configuration for the table element allows you to "turn off" the generation of any (or all) statements for a table. A configuratio= n like this should do what you want: (Sorry this isn't better documented. It's all in the DTD, but that can be kind of hard to read) Jeff Butler On 12/11/05, Denis Vladimirov wrote: > > Hi Jeff, > > > > I'm not sure exactly what you mean by "turning off dynamic sql". > > > > I meant turning off the generation of the dynamic sql methods/mappings in > the DAOs and in the SQL map for some tables. > > > I think the superclass is an interesting idea. It would be the > > superclass of the primary key if the table had a primary key, or the > > superclass of the "record" class otherwise. Is that what you're thinki= ng? > > > > > That would be a superclass of the "record" class. All our model classes > extend the same AbstractModelClass which has some common functionality fo= r > the all Models > > Regards, > Denis > ------=_Part_11109_5055996.1134396630740 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Regarding dynamic SQL - I think the capability you need is already in = Abator.  The XML configuration for the table element allows you to &qu= ot;turn off" the generation of any (or all) statements for a table.&nb= sp; A configuration like this should do what you want:
 
<table schema=3D"foo" tableName=3D"bar" enableS= electByExample=3D"false"
  enableDeleteByExample=3D"false" />
 
(Sorry this isn't better documented.  It's all in the DTD, but th= at can be kind of hard to read)
 
Jeff Butler
 
On 12/11/05, Denis Vladimirov <den= is.vladimirov@gmail.com> wrote:
Hi Jeff,


I'm not sure exactly what you mean by "turning off dynamic sql&qu= ot;.

I meant turning off the generation of the dynamic sql methods/mapp= ings in the DAOs and in the SQL map for some tables.
 

I think the superclass is an interesting idea.  It would be the s= uperclass of the primary key if the table had a primary key, or the supercl= ass of the "record" class otherwise.  Is that what you're th= inking?=20
 
That would be a superclas= s of the "record" class. All our model classes extend the same Ab= stractModelClass which has some common functionality for the all Models

Regards,
Denis

------=_Part_11109_5055996.1134396630740--