Return-Path: Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 37856 invoked by uid 99); 10 Jan 2005 17:14:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of clinton.begin@gmail.com designates 64.233.184.197 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 10 Jan 2005 09:14:15 -0800 Received: by wproxy.gmail.com with SMTP id 68so777182wri for ; Mon, 10 Jan 2005 09:14:12 -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=A33e40TH/B+v18N1VZr98h4GJCQ647TIqS0g86xAyAhGe5KtVgw17iczr82yb+1CLqpT5ltg+80pL1JIkKkjsJ8nS9A5goskdSqGKb5q4BInFuFIfoG1mtmets1cpVILO1TMHUHCD7BfExTdfUv/gQzCEUHRVOyBDHYXnSt1Cek= Received: by 10.54.38.67 with SMTP id l67mr121681wrl; Mon, 10 Jan 2005 09:14:11 -0800 (PST) Received: by 10.54.33.38 with HTTP; Mon, 10 Jan 2005 09:14:11 -0800 (PST) Message-ID: <16178eb105011009143461aca2@mail.gmail.com> Date: Mon, 10 Jan 2005 10:14:11 -0700 From: Clinton Begin Reply-To: cbegin@ibatis.com To: ibatis-user-java@incubator.apache.org, Brandon Goodin Subject: Re: raltation and inserts In-Reply-To: <2fe5ef5b050110073431cb0bc3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41E2736A.4020406@videone.dk> <2fe5ef5b050110073431cb0bc3@mail.gmail.com> X-Virus-Checked: Checked Yes, both the Developer Guide and the Tutorial show how to update. Clinton On Mon, 10 Jan 2005 08:34:14 -0700, Brandon Goodin wrote: > You would perform an insert like any other. The guide does describe > how to insert. > > Brandon > > > On Mon, 10 Jan 2005 13:22:02 +0100, David Nielsen wrote: > > Hi, > > > > I have 2 classes: > > > > Account > > private int id; > > private String username; > > private String password; > > private Collection groups; > > > > Group > > private int id; > > private String name; > > > > the db has 3 tables; > > > > ACCOUNT > > GROUP > > ACCOUNT_GROUP_REF > > > > where ACCOUNT_GROUP_REF is a join table for my relations, > > with 2 collumns: > > ACCOUNT_ID > > GROUP_ID > > > > Now my question is how do i keep my ACCOUNT_GROUP_REF updated, > > > > the Developer guide describes how to setup selects only, > > but what about insert and updates, of the relations ?? > > > > Regards, > > David Nielsen > > >