Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 27994 invoked from network); 20 Jul 2005 14:06:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 14:06:46 -0000 Received: (qmail 53340 invoked by uid 500); 20 Jul 2005 14:06:44 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 53318 invoked by uid 500); 20 Jul 2005 14:06:43 -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 53305 invoked by uid 99); 20 Jul 2005 14:06:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 07:06:43 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of clinton.begin@gmail.com designates 64.233.184.199 as permitted sender) Received: from [64.233.184.199] (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 07:06:38 -0700 Received: by wproxy.gmail.com with SMTP id i28so1441161wra for ; Wed, 20 Jul 2005 07:06:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=gIaDP9qMJJXGZZCLyfHijoiwPMmJetBKhUv58xLc6ZMw2ZRqj/vppExMsf1dx4mkFbezgXbfZkqlzQtPXVTx6QFKqtw03FOMFm3OoIydadLFN+Npt0jn7uNxSA/ymf6ETmHeozxipL6OzC7y5aHuoKnP88PUf0NowZyFpcj7hho= Received: by 10.54.13.37 with SMTP id 37mr98082wrm; Wed, 20 Jul 2005 07:06:03 -0700 (PDT) Received: by 10.54.93.11 with HTTP; Wed, 20 Jul 2005 07:06:03 -0700 (PDT) Message-ID: <16178eb105072007063a0245dc@mail.gmail.com> Date: Wed, 20 Jul 2005 08:06:03 -0600 From: Clinton Begin Reply-To: cbegin@ibatis.com To: user-java@ibatis.apache.org Subject: Re: synchronization between DB and ibatis sqlmaps In-Reply-To: <007401c58d22$f2eed4f0$d503a8c0@SUPPORT.inet.support.pl> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1300_12396009.1121868363400" References: <16178eb105071821466e050c96@mail.gmail.com> <42DC9AD7.9010002@isanusi.com> <16178eb1050719063666b0eb5@mail.gmail.com> <42DD0819.3040501@isanusi.com> <16178eb1050719071434c347ae@mail.gmail.com> <42DD0D21.3080805@bluestudio.it> <762ca9ae0507191106549e4771@mail.gmail.com> <42DE0366.6090501@bluestudio.it> <007401c58d22$f2eed4f0$d503a8c0@SUPPORT.inet.support.pl> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_1300_12396009.1121868363400 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Why wouldn't you have test cases to test your statements anyway? Cheers, Clinton On 7/20/05, Darek Dober wrote: >=20 > Do you have any solutions for that? >=20 > Let's assume, that something changed in database, i.e names of tables or > columns. And you forgot to change it. >=20 > As far as I know I cannot check if sqlmap command is still valid, unless = i > execute it. It is difficult to execute and check all of the sqlmaps. Bean > properties > are checked at creation of ibatis instance so you get an error, but what= =20 > if > something changed in database? >=20 > One of the way is to write test case, which should test all of the sqlmap= s > against any changes. >=20 > Is the simplier way to check correctness of all sqlmaps >=20 > Darek Dober >=20 > ------=_Part_1300_12396009.1121868363400 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Why wouldn't you have test cases to test your statements anyway?

Cheers,
Clinton

On 7/20/05, Darek Dober <doove= rone@op.pl> wrote:
Do you have any solutions for that?

Let's assume, that something cha= nged in database, i.e names of tables or
columns. And you forgot to chan= ge it.

As far as I know I cannot check if sqlmap command is still va= lid, unless i
execute it. It is difficult to execute and check all of the sqlmaps. Be= an
properties
are checked at creation of ibatis instance so you get a= n error, but what if
something changed in database?

One of the wa= y is to write test case, which should test all of the sqlmaps
against any changes.

Is the simplier way to check correctness of= all sqlmaps

Darek Dober


------=_Part_1300_12396009.1121868363400--