Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 74585 invoked from network); 18 Mar 2005 07:56:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Mar 2005 07:56:24 -0000 Received: (qmail 88483 invoked by uid 500); 18 Mar 2005 07:56:24 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 88317 invoked by uid 500); 18 Mar 2005 07:56:23 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 88295 invoked by uid 99); 18 Mar 2005 07:56:22 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of brandon.goodin@gmail.com designates 64.233.170.199 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.199) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Mar 2005 23:56:22 -0800 Received: by rproxy.gmail.com with SMTP id b11so49484rne for ; Thu, 17 Mar 2005 23:56:20 -0800 (PST) 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:content-transfer-encoding:references; b=MzDJPNGbUxgPvEavle0WasGcnNNbhq2cWA5l7Epw5UPIb8XLnhNxzNIOSziKONkB3ERKO70EGtGK2SlCk6OOCAinsksVOs+ezU8v0fhQliNdPBzjIqm+6Q5XwfoB2ujIIm1TUH093m7Abi3QJJnJ4dZRLVSQaFsF8/rDoph1HhQ= Received: by 10.38.12.26 with SMTP id 26mr2265935rnl; Thu, 17 Mar 2005 23:56:20 -0800 (PST) Received: by 10.38.74.62 with HTTP; Thu, 17 Mar 2005 23:56:20 -0800 (PST) Message-ID: <2fe5ef5b050317235645eae26d@mail.gmail.com> Date: Fri, 18 Mar 2005 00:56:20 -0700 From: Brandon Goodin Reply-To: Brandon Goodin To: ibatis-user-java@incubator.apache.org Subject: Re: How does iBATIS read the SqlMap files? In-Reply-To: <20050318070942.77082.qmail@web30509.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20050318070942.77082.qmail@web30509.mail.mud.yahoo.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N post your sqlmap On Thu, 17 Mar 2005 23:09:42 -0800 (PST), Swati Singhal wrote: > Hello, > > Yes, in my Order.xml I have: > > > type="com.ibatis.dataaccess.beans.Row"/> > > parameterClass="com.ibatis.dataaccess.beans.Row"> > INSERT INTO ORDER (processed_ind, insr_dt, > processed_dt, order_det) > VALUES (#processind#, #createddate#, > #processeddate#, #orderxml#) > > > > > I am still getting the error when I call: > > daoManager.startTransaction(); > insert("Order.insertRow", xmlrow); > daoManager.endTransaction(); > > any idea?? > > Thanks > > Swati > > --- Brandon Goodin wrote: > > are you using namespaces? if yes then you need to > > make it... > > > > insert("Order.insertRow", row); > > > > if your namespace is "Order" > > > > Brandon > > > > > > On Thu, 17 Mar 2005 22:44:26 -0800 (PST), Swati > > Singhal > > wrote: > > > Hi, > > > > > > I have an Actionclass from where I instantiate my > > > Service class which in turn gets me a DAO instance > > and > > > calls a class where I say: > > > > > > daoManager.startTransaction(); > > > insert("insertRow", row); > > > daoManager.endTransaction(); > > > > > > Now, I have defined all my XML files containing > > the > > > queries in sql-map-config.xml file like: > > > > > > > > > > > resource="com/myibatis/dataaccess/persistence/sqlmapdao/sql/Shop.xml"/> > > > > > > > > resource="com/myibatis/dataaccess/persistence/sqlmapdao/sql/order.xml"/> > > > > > > What I want to know is, how does iBATIS know which > > of > > > the 2 XML files it should look INTO for finding a > > > statement named "insertRow" ?? > > > > > > I have only one such XML file and have a statement > > by > > > the name "insertRow" but am getting that > > > "there is no statement by the name "insertRow" in > > this > > > SqlMap" > > > > > > Any solutions? > > > > > > Thanks > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Make Yahoo! your home page > > > http://www.yahoo.com/r/hs > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >