Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 42631 invoked from network); 12 Sep 2008 21:23:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 21:23:47 -0000 Received: (qmail 79614 invoked by uid 500); 12 Sep 2008 21:23:41 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 79603 invoked by uid 500); 12 Sep 2008 21:23:41 -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 79592 invoked by uid 99); 12 Sep 2008 21:23:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 14:23:41 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 21:22:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KeG6j-0004u0-TI for user-java@ibatis.apache.org; Fri, 12 Sep 2008 14:23:13 -0700 Message-ID: <19464373.post@talk.nabble.com> Date: Fri, 12 Sep 2008 14:23:13 -0700 (PDT) From: averm To: user-java@ibatis.apache.org Subject: Re: Ibatis : multiple insert In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tdhaayushverma@gmail.com References: X-Virus-Checked: Checked by ClamAV on apache.org I am having a similar situation. did u happen to find a way to get this working. lali m wrote: > > hi, > > I have to do multiple insert in same time and for the moment I not found > how > do it. > exemple : for one student I have to do insert all books > > Student student { > Sring name > ................. > > > List bookList; > > } > > (studentTable ) 1---------------------- n(bookTable) > > whene I insert a student I need to insert (0 or n) books > I need to do some things like that : > > > > > insert into students (id, name,date, ..... ) values (?,?,?,....) > > > > SELECT @@IDENTITY AS id_student > > > > > > > > insert into books (id, tilte, ......) > > > > values (#id#, #tilte#, ....) > > > > where id=#id_student# > > > > -- View this message in context: http://www.nabble.com/Ibatis-%3A-multiple-insert-tp19136408p19464373.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.