Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 90934 invoked from network); 22 Dec 2005 00:59:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Dec 2005 00:59:00 -0000 Received: (qmail 17455 invoked by uid 500); 22 Dec 2005 00:58:58 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 17439 invoked by uid 500); 22 Dec 2005 00:58:58 -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 17428 invoked by uid 99); 22 Dec 2005 00:58:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 16:58:58 -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 zhongmin.chen@gmail.com designates 64.233.182.193 as permitted sender) Received: from [64.233.182.193] (HELO nproxy.gmail.com) (64.233.182.193) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 16:58:57 -0800 Received: by nproxy.gmail.com with SMTP id l36so103584nfa for ; Wed, 21 Dec 2005 16:58:35 -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=iKPV2AVkPWob8Olr9wDA9kHXzU94tufRBSf9/uSPmTca9ft8QT0kco3lZmOrsNwlZzUdp4/rOMOBOg9IPELLgUvWoMENzFT6djK6DtJ95sMH42PWTiofEL5gsx1xoMnbUBrOXvBqeJhNS7D4Dwb3JL6Ue4uIQ9bwWGuuekc2MfE= Received: by 10.49.51.10 with SMTP id d10mr4649nfk; Wed, 21 Dec 2005 16:58:35 -0800 (PST) Received: by 10.48.232.17 with HTTP; Wed, 21 Dec 2005 16:58:35 -0800 (PST) Message-ID: <93d5d9550512211658q31ed2852h2a9161c1701f30a1@mail.gmail.com> Date: Wed, 21 Dec 2005 16:58:35 -0800 From: Zhongmin Chen To: user-java@ibatis.apache.org Subject: Re: [ABATOR] New Version 0.5.1 Available In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7475_11755717.1135213115718" References: <93d5d9550512160625h20add72ey1392b2ca2a58b7af@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_7475_11755717.1135213115718 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks! Jeff This fixed our problem. We are using Oracle 9i. We have another problem with a table which has a BLOB field, but it didn't create the domain object like below (still just tableName or domianObjectName): WithBLOBs.java Is this a problem of Abator with Oracle? Thanks! Zhongmin On 12/16/05, Jeff Butler wrote: > > The SQL maps generated by Abator require the use of statement namespaces. > Make sure that you have them turned on in your SqlMapConfig file like thi= s: > > > > ... > > > Jeff Butler > > > On 12/16/05, Zhongmin Chen wrote: > > Hi, > > > > I used Abator Plug-in to generated the Domain Object, SqlMap files, and > DAO classes for multiple tables, then follow iBATIS JPetStore-5.0 to add > the SqlMap files to sql-map-config.xml and add DAO to DAO.xml. I am using > iBATIS 2.1.5 (build 582). But I got the following error: > > > > com.ibatis.dao.client.DaoException: Error while configuring DaoManager. > Cause: com.ibatis.common.exception.NestedRuntimeException: Error > occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing > XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMapConfig/sqlMap'. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath > '/sqlMap/select'. Cause: com.ibatis.sqlmap.client.SqlMapException: There > is already a statement named abatorgenerated_selectByPrimaryKey in this > SqlMap. > > Caused by: com.ibatis.sqlmap.client.SqlMapException: There is already a > statement named abatorgenerated_selectByPrimaryKey in this SqlMap. > > Caused by: com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.sqlmap.client.SqlMapException: There is already a statement > named abatorgenerated_selectByPrimaryKey in this SqlMap. > > > > Is there anybody else getting the same erro? Do you have an example to > use the generated SqlMap files and DAO classes? > > > > Thanks! > > Zhongmin > > > > > > > > > > On 12/12/05, Jeff Butler wrote: > > > > > > This version fixes the "divide by zero" error, and also makes things > better for SQL Server. > > > > > > If you did the Eclipse automatic install, then Eclipse will pick up > the new version automatically when you do "Help>Software Updates>Find and > Install...", then select the option to "Search for Updates of Currently > Installed Features". > > > > > > If you did the manual install, then you can download the new zip file > and update from there. See ibatis.apache.org/abator.html for the link to > the zip file. > > > > > > Thanks to Denis Vladimirov and Kevin Broderick for helping to identif= y > these issues! > > > > > > Jeff Butler > > > > > > > > > > ------=_Part_7475_11755717.1135213115718 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks! Jeff

This fixed our problem.

We are using Oracle 9i. We have another problem with a table which has a BLOB field, but it didn't create the domain object like below (still just tableName or domianObjectName):

<tableName or domainObjectName>WithBLOBs.java

Is this a problem of Abator with Oracle?

Thanks!
Zhongmin

On 12/16/05, Jeff Butler <jeffgbutler@gmail.com> wrote:
The SQL maps generated by Abator require the use of statement namespaces.  Make sure that you have them turned on in your SqlMapConfig file like this:

<sqlMapConfig>
  <settings useStatementNamespaces=3D"true" />
  ...
</sqlMapConfig>
 
Jeff Butler


On 12/16/05, Zhongmin Chen <zhongmin.chen@gmail.com> wrote:
> Hi,
>
= > I used Abator Plug-in to generated the Domain Object, SqlMap files, and DAO classes for multiple tables, then follow iBATIS JPetStore-5.0 to add the SqlMap files to sql-map-config.xml and add DAO to DAO.xml. I am using iBATIS 2.1.5 (build 582). But I got the following error:
>
= > com.ibatis.dao.client.DaoException: Error while configuring DaoManager= .  Cause:=20 com.ibatis.common.exception.NestedRuntimeException: Error occurred.  C= ause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Caus= e: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath = '/sqlMapConfig/sqlMap'.  Cause:=20 com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: com= .ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlM= ap/select'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There is= already a statement named abatorgenerated_selectByPrimaryKey in this SqlMa= p.
> Caused by: com.ibatis.sqlmap.client.SqlMapException: There is alre= ady a statement named abatorgenerated_selectByPrimaryKey in this SqlMap.> Caused by: com.ibatis.common.exception.NestedRuntimeException: Error = parsing XPath '/sqlMap/select'.  Cause:=20 com.ibatis.sqlmap.client.SqlMapException: There is already a statement name= d abatorgenerated_selectByPrimaryKey in this SqlMap.
>
> Is th= ere anybody else getting the same erro? Do you have an example to use the g= enerated SqlMap files and DAO classes?
>
> Thanks!
> Zhongmin
>
>
>
&= gt;
> On 12/12/05, Jeff Butler < jeffgbutler@gmail.com> wrote:
> >
> > This versi= on fixes the "divide by zero" error, and also makes things better= for SQL Server.
> >  
> > If you did the Eclipse automatic install, then Eclipse will pick up the new version automatically when you do "Help>Software Updates>Find and Install...", then se= lect the option to "Search for Updates of Currently Installed Features"= ;.
> >  
> > If you did the manual install, then yo= u can download the new zip file and update from there.  See ibatis.apache.org/abator.html for the link to the zip file.
> >  
> > Thanks to Denis Vladimirov and Kevin Brod= erick for helping to identify these issues!
> >  
> >= ; Jeff Butler
> >  
>
>

 

------=_Part_7475_11755717.1135213115718--